add a require{} for CRC32

This commit is contained in:
dzaima 2023-11-13 12:56:48 +02:00
parent 5910c93fcb
commit 4fb6ce602f

View File

@ -28,6 +28,7 @@ def hash_val{x0:u64} = {
x ^= x >> 33; x
}
# CRC32
if (hasarch{'SSE4.2'}) require{'x86intrin.h'}
def hash_val{x:u32 & hasarch{'SSE4.2'}} = {
emit{u32, '_mm_crc32_u32', 0x973afb51, x}
}