summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-27 23:18:56 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-27 23:18:56 +0300
commit13f0d3f3c5725dd5838bf425760d82484fcfad25 (patch)
treec2382187aa27bac97066b7227650fd18666f152c /src/localconsts.h
parentfdf4a663f34510cc6aaa72cb2496bcd6113f7b6b (diff)
downloadmanaverse-13f0d3f3c5725dd5838bf425760d82484fcfad25.tar.gz
manaverse-13f0d3f3c5725dd5838bf425760d82484fcfad25.tar.bz2
manaverse-13f0d3f3c5725dd5838bf425760d82484fcfad25.tar.xz
manaverse-13f0d3f3c5725dd5838bf425760d82484fcfad25.zip
Disable simd support for kFreeBSD.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 9319405ca..1bcc9f272 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -140,10 +140,12 @@
#ifdef __x86_64__
#if !defined(__clang__) && defined(__GNUC__)
+#if !defined(__FreeBSD_kernel__) || !defined(__GLIBC__)
// gcc 4.8 look like support avx2, but need global define for enable any SIMD
#if GCC_VERSION >= 40900
#define SIMD_SUPPORTED
#endif // GCC_VERSION > 40900
+#endif // !defined(__FreeBSD_kernel__) || !defined(__GLIBC__)
#endif // !defined(__clang__) && defined(__GNUC__)
#endif // __x86_64__