[前][次][番号順一覧][スレッド一覧]

ruby-changes:64706

From: Kenta <ko1@a...>
Date: Sat, 2 Jan 2021 10:20:19 +0900 (JST)
Subject: [ruby-changes:64706] ef6ab776d5 (master): Add __x86_64__ guard to include x86intrin.h

https://git.ruby-lang.org/ruby.git/commit/?id=ef6ab776d5

From ef6ab776d55f2775957b107a3a0d8c45ece119b8 Mon Sep 17 00:00:00 2001
From: Kenta Murata <mrkn@m...>
Date: Sat, 2 Jan 2021 10:18:58 +0900
Subject: Add __x86_64__ guard to include x86intrin.h


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 @@ https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bits.h#L4
 #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 */
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]