diff options
author | Michael Klingbeil <klingm@amazon.com> | 2023-11-30 04:36:25 +0300 |
---|---|---|
committer | Michael Klingbeil <klingm@amazon.com> | 2023-11-30 04:36:25 +0300 |
commit | 6f6c0591eb26a7ceb6e1d58a91281a786969d611 (patch) | |
tree | e6a20ebde07434bb00bc6f93835d9d47530c6516 | |
parent | 322ca0bfa4bd90f203fcb2ee46f7b3ccf8311558 (diff) |
try to use vec_avx.h for MSVC buildsexp_msc_build1
-rw-r--r-- | dnn/vec.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -32,9 +32,16 @@ #include "opus_types.h" #include <math.h> #include "arch.h" - +#include "x86/x86_arch_macros.h" #if defined(__AVX__) || defined(__SSE2__) +#ifndef __AVX__ +#if defined(_MSC_VER) +#pragma message ("Compiling without AVX") +#else +#warning Compiling without AVX +#endif +#endif #include "vec_avx.h" #elif (defined(__ARM_NEON__) || defined(__ARM_NEON)) && !defined(DISABLE_NEON) #include "vec_neon.h" |