1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add __x86_64__ guard to include x86intrin.h

This commit is contained in:
Kenta Murata 2021-01-02 10:18:58 +09:00
parent 5aa28d9d6d
commit ef6ab776d5
No known key found for this signature in database
GPG key ID: CEFE8AFB6081B062

View file

@ -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 */