summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/bits.h
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2021-01-02 10:18:58 +0900
committerKenta Murata <mrkn@mrkn.jp>2021-01-02 10:18:58 +0900
commitef6ab776d55f2775957b107a3a0d8c45ece119b8 (patch)
tree7570b2d4d1841f3b7843649909ef5f9db2e187f7 /ext/bigdecimal/bits.h
parent5aa28d9d6d8d070a4f29905f3a2c76b0f000ed44 (diff)
Add __x86_64__ guard to include x86intrin.h
Diffstat (limited to 'ext/bigdecimal/bits.h')
-rw-r--r--ext/bigdecimal/bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bits.h b/ext/bigdecimal/bits.h
index 5dfda49..ea9cb10 100644
--- a/ext/bigdecimal/bits.h
+++ b/ext/bigdecimal/bits.h
@@ -4,7 +4,7 @@
#include "feature.h"
#include "static_assert.h"
-#if defined(HAVE_X86INTRIN_H)
+#if defined(__x86_64__) && defined(HAVE_X86INTRIN_H)
# include <x86intrin.h> /* for _lzcnt_u64 */
#elif defined(_MSC_VER) && _MSC_VER >= 1310
# include <intrin.h> /* for the following intrinsics */