Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klingbeil <klingm@amazon.com>2023-11-30 04:36:25 +0300
committerMichael Klingbeil <klingm@amazon.com>2023-11-30 04:36:25 +0300
commit6f6c0591eb26a7ceb6e1d58a91281a786969d611 (patch)
treee6a20ebde07434bb00bc6f93835d9d47530c6516
parent322ca0bfa4bd90f203fcb2ee46f7b3ccf8311558 (diff)
try to use vec_avx.h for MSVC buildsexp_msc_build1
-rw-r--r--dnn/vec.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/dnn/vec.h b/dnn/vec.h
index c3f88dfe..311a386f 100644
--- a/dnn/vec.h
+++ b/dnn/vec.h
@@ -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"