Set up aggressive optimizations when using simde or MOD
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
7974430c4e
commit
d0a354a411
11 changed files with 54 additions and 8 deletions
|
@ -20,6 +20,12 @@
|
|||
#if (defined(__i386__) || defined(__x86_64__) || defined(__EMSCRIPTEN__)) && !defined(CARDINAL_NOSIMD)
|
||||
# include_next <emmintrin.h>
|
||||
#else
|
||||
# define SIMDE_ACCURACY_PREFERENCE 0
|
||||
# define SIMDE_ENABLE_NATIVE_ALIASES
|
||||
# define SIMDE_FAST_CONVERSION_RANGE
|
||||
# define SIMDE_FAST_MATH
|
||||
# define SIMDE_FAST_NANS
|
||||
# define SIMDE_FAST_ROUND_MODE
|
||||
# define SIMDE_FAST_ROUND_TIES
|
||||
# include "../simde/simde/x86/sse.h"
|
||||
#endif
|
||||
|
|
|
@ -20,7 +20,13 @@
|
|||
#if (defined(__i386__) || defined(__x86_64__) || defined(__EMSCRIPTEN__)) && !defined(CARDINAL_NOSIMD)
|
||||
# include_next <immintrin.h>
|
||||
#else
|
||||
# define SIMDE_ACCURACY_PREFERENCE 0
|
||||
# define SIMDE_ENABLE_NATIVE_ALIASES
|
||||
# define SIMDE_FAST_CONVERSION_RANGE
|
||||
# define SIMDE_FAST_MATH
|
||||
# define SIMDE_FAST_NANS
|
||||
# define SIMDE_FAST_ROUND_MODE
|
||||
# define SIMDE_FAST_ROUND_TIES
|
||||
# include "../simde/simde/x86/sse.h"
|
||||
# include "../simde/simde/x86/sse2.h"
|
||||
#endif
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
#elif defined(__EMSCRIPTEN__) && !defined(CARDINAL_NOSIMD)
|
||||
# include <wasm_simd128.h>
|
||||
#else
|
||||
# define SIMDE_ACCURACY_PREFERENCE 0
|
||||
# define SIMDE_ENABLE_NATIVE_ALIASES
|
||||
# define SIMDE_FAST_CONVERSION_RANGE
|
||||
# define SIMDE_FAST_MATH
|
||||
# define SIMDE_FAST_NANS
|
||||
# define SIMDE_FAST_ROUND_MODE
|
||||
# define SIMDE_FAST_ROUND_TIES
|
||||
# include "../simde/simde/x86/mmx.h"
|
||||
#endif
|
||||
|
|
|
@ -67,7 +67,13 @@ __m64 _mm_set1_pi16(short w)
|
|||
*/
|
||||
|
||||
#else
|
||||
# define SIMDE_ACCURACY_PREFERENCE 0
|
||||
# define SIMDE_ENABLE_NATIVE_ALIASES
|
||||
# define SIMDE_FAST_CONVERSION_RANGE
|
||||
# define SIMDE_FAST_MATH
|
||||
# define SIMDE_FAST_NANS
|
||||
# define SIMDE_FAST_ROUND_MODE
|
||||
# define SIMDE_FAST_ROUND_TIES
|
||||
# include "../simde/simde/x86/sse.h"
|
||||
# include "../simde/simde/x86/sse2.h"
|
||||
# include "../simde/simde/x86/sse3.h"
|
||||
|
|
|
@ -20,6 +20,12 @@
|
|||
#if (defined(__i386__) || defined(__x86_64__) || defined(__EMSCRIPTEN__)) && !defined(CARDINAL_NOSIMD)
|
||||
# include_next <xmmintrin.h>
|
||||
#else
|
||||
# define SIMDE_ACCURACY_PREFERENCE 0
|
||||
# define SIMDE_ENABLE_NATIVE_ALIASES
|
||||
# define SIMDE_FAST_CONVERSION_RANGE
|
||||
# define SIMDE_FAST_MATH
|
||||
# define SIMDE_FAST_NANS
|
||||
# define SIMDE_FAST_ROUND_MODE
|
||||
# define SIMDE_FAST_ROUND_TIES
|
||||
# include "../simde/simde/x86/avx.h"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue