all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 4c95b8570d721d1dfa4cead1d1cc0b5217924cbd 892 bytes (raw)
name: gnu/packages/patches/ericw-tools-add-check-for-sse2-in-light.cc.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
From 982ef5276bb231ded12c45a686b0875594175774 Mon Sep 17 00:00:00 2001
From: Bryan Haley <bryanmhaley@gmail.com>
Date: Mon, 28 Mar 2022 22:05:28 -0700
Subject: [PATCH] Add check for SSE2 in light.cc (#328)

---
 light/light.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/light/light.cc b/light/light.cc
index 7e23d040f..c00844643 100644
--- a/light/light.cc
+++ b/light/light.cc
@@ -33,7 +33,7 @@
 #include <common/polylib.hh>
 #include <common/bsputils.hh>
 
-#ifdef HAVE_EMBREE
+#if defined(HAVE_EMBREE) && defined (__SSE2__)
 #include <xmmintrin.h>
 //#include <pmmintrin.h>
 #endif
@@ -255,7 +255,7 @@ LightThread(void *arg)
 {
     const mbsp_t *bsp = (const mbsp_t *)arg;
 
-#ifdef HAVE_EMBREE
+#if defined(HAVE_EMBREE) && defined (__SSE2__)
     _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
 //    _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
 #endif

debug log:

solving 4c95b8570d ...
found 4c95b8570d in https://yhetil.org/guix/a1ab67515ed40a088f8ae0fe33c1f077d6ff9692.1726879062.git.jsubuntuxp@disroot.org/ ||
	https://yhetil.org/guix/77a59889d3bed9a7629b49da7b033846cb195715.1726445374.git.jsubuntuxp@disroot.org/

applying [1/1] https://yhetil.org/guix/a1ab67515ed40a088f8ae0fe33c1f077d6ff9692.1726879062.git.jsubuntuxp@disroot.org/
diff --git a/gnu/packages/patches/ericw-tools-add-check-for-sse2-in-light.cc.patch b/gnu/packages/patches/ericw-tools-add-check-for-sse2-in-light.cc.patch
new file mode 100644
index 0000000000..4c95b8570d

1:23: trailing whitespace.
 
1:32: trailing whitespace.
 
Checking patch gnu/packages/patches/ericw-tools-add-check-for-sse2-in-light.cc.patch...
Applied patch gnu/packages/patches/ericw-tools-add-check-for-sse2-in-light.cc.patch cleanly.
warning: 2 lines add whitespace errors.

skipping https://yhetil.org/guix/77a59889d3bed9a7629b49da7b033846cb195715.1726445374.git.jsubuntuxp@disroot.org/ for 4c95b8570d
index at:
100644 4c95b8570d721d1dfa4cead1d1cc0b5217924cbd	gnu/packages/patches/ericw-tools-add-check-for-sse2-in-light.cc.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.