diff options
author | Marat Dukhan <maratek@google.com> | 2020-02-21 05:46:31 -0800 |
---|---|---|
committer | Marat Dukhan <maratek@google.com> | 2020-02-21 05:46:31 -0800 |
commit | 88882f601f8179e1987b7e7cf4a8012c9080ad44 (patch) | |
tree | c27f1522c254e6af693fd5c10be4ca77e612dd14 /include | |
parent | 10b4ffc6ea9e2e11668f86969586f88bc82aaefa (diff) | |
download | psimd-88882f601f8179e1987b7e7cf4a8012c9080ad44.tar.gz |
Default to not use QFMA instructions on WAsm SIMD
Diffstat (limited to 'include')
-rw-r--r-- | include/psimd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/psimd.h b/include/psimd.h index 1aa1014..9890b82 100644 --- a/include/psimd.h +++ b/include/psimd.h @@ -667,7 +667,7 @@ return (psimd_f32) _mm_fmadd_ps((__m128) c, (__m128) a, (__m128) b); #elif (defined(__x86_64__) || defined(__i386__) || defined(__i686__)) && defined(__FMA4__) return (psimd_f32) _mm_macc_ps((__m128) c, (__m128) a, (__m128) b); - #elif defined(__wasm__) && defined(__wasm_simd128__) && defined(__clang__) + #elif defined(__wasm__) && defined(__wasm_simd128__) && defined(__clang__) && PSIMD_ENABLE_WASM_QFMA return (psimd_f32) __builtin_wasm_qfma_f32x4(a, b, c); #else return a + b * c; |