mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 19:24:29 +00:00
Guard SIMD file only for x86 and amd64.
This commit is contained in:
5
simd.c
5
simd.c
@@ -1,3 +1,6 @@
|
|||||||
|
#if defined(__x86_64__) || defined(__amd64) || defined(_M_AMD64) || defined(_M_X64) || defined(__I386__) || \
|
||||||
|
defined(__i386__) || defined(__THW_INTEL) || defined(_M_IX86)
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#else
|
#else
|
||||||
@@ -44,3 +47,5 @@ int have_clmul(void)
|
|||||||
|
|
||||||
return has_pclmulqdq && has_sse41;
|
return has_pclmulqdq && has_sse41;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user