move andn helper function to bitutils.h

This commit is contained in:
Konstantinos Margaritis
2020-09-22 12:17:27 +03:00
parent 6581aae90e
commit 9f3ad89ed6
4 changed files with 32 additions and 14 deletions

View File

@@ -167,4 +167,12 @@ u64a pext64(u64a x, u64a mask) {
return pext64_impl(x, mask);
}
/* compilers don't reliably synthesize the 32-bit ANDN instruction here,
* so we force its generation.
*/
static really_inline
u64a andn(const u32 a, const u8 *b) {
return andn_impl_c(a, b);
}
#endif // BITUTILS_H