diff options
Diffstat (limited to 'community/darktable/fix-ifunc-multiarch.patch')
-rw-r--r-- | community/darktable/fix-ifunc-multiarch.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/community/darktable/fix-ifunc-multiarch.patch b/community/darktable/fix-ifunc-multiarch.patch new file mode 100644 index 0000000000..5495587760 --- /dev/null +++ b/community/darktable/fix-ifunc-multiarch.patch @@ -0,0 +1,25 @@ +Based on https://discuss.pixls.us/t/a-tone-equalizer-in-darktable/10678/87 + +Fixes: + + error: the call requires 'ifunc', which is not supported by this target + +diff --git a/src/common/darktable.h b/src/common/darktable.h +index 23e1b22..81df16e 100644 +--- a/src/common/darktable.h ++++ b/src/common/darktable.h +@@ -100,14 +100,7 @@ typedef unsigned int u_int; + + #endif /* _OPENMP */ + +-/* Create cloned functions for various CPU SSE generations */ +-/* See for instructions https://hannes.hauswedell.net/post/2017/12/09/fmv/ */ +-/* TL;DR : use only on SIMD functions containing low-level paralellized/vectorized loops */ +-#if __has_attribute(target_clones) && !defined(_WIN32) && defined(__SSE__) +-#define __DT_CLONE_TARGETS__ __attribute__((target_clones("default", "sse2", "sse3", "sse4.1", "sse4.2", "popcnt", "avx", "avx2", "avx512f", "fma4"))) +-#else + #define __DT_CLONE_TARGETS__ +-#endif + + /* Helper to force heap vectors to be aligned on 64 bits blocks to enable AVX2 */ + #define DT_ALIGNED_ARRAY __attribute__((aligned(64))) |