add fallback pdep64 for x86 if no HAVE_BMI2

This commit is contained in:
Konstantinos Margaritis
2023-12-20 08:25:30 +02:00
parent 192bf38d56
commit 50675d0af6

View File

@@ -285,6 +285,11 @@ static really_inline
u64a pdep64_impl(u64a x, u64a mask) {
return _pdep_u64(x, mask);
}
#else
static really_inline
u64a pdep64_impl(u64a x, u64a mask) {
return pdep64_impl_c(x, mask);
}
#endif
/* compilers don't reliably synthesize the 32-bit ANDN instruction here,