diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/itpp/fix-linux.patch | |
Diffstat (limited to 'vcpkg/ports/itpp/fix-linux.patch')
| -rw-r--r-- | vcpkg/ports/itpp/fix-linux.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/itpp/fix-linux.patch b/vcpkg/ports/itpp/fix-linux.patch new file mode 100644 index 0000000..18b66af --- /dev/null +++ b/vcpkg/ports/itpp/fix-linux.patch @@ -0,0 +1,17 @@ +diff --git a/itpp/base/random_dsfmt.h b/itpp/base/random_dsfmt.h +index ccbf182..de819fb 100644 +--- a/itpp/base/random_dsfmt.h ++++ b/itpp/base/random_dsfmt.h +@@ -299,7 +299,12 @@ private: + */ + static void do_recursion(typename Context::w128_t *r, typename Context::w128_t *a, typename Context::w128_t *b, typename Context::w128_t *lung) { + #if defined(__SSE2__) ++ ++#ifdef __linux__ ++#define SSE2_SHUFF 0x1bU ++#else + const unsigned int SSE2_SHUFF = 0x1bU; ++#endif + + __m128i x = a->si; + __m128i z = _mm_slli_epi64(x, SL1); |