]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
add fallback pdep64 for x86 if no HAVE_BMI2
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 20 Dec 2023 06:25:30 +0000 (08:25 +0200)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 20 Dec 2023 06:25:30 +0000 (08:25 +0200)
src/util/arch/x86/bitutils.h

index 4141119a62042832e5ed11f6594ba33f5454e587..485b651222fad48c1617aaddb7e0ec333e43655b 100644 (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,