[linux-kernel] Add test that checks the ifdef hardwiring

This commit is contained in:
Nick Terrell
2020-09-09 14:36:19 -07:00
parent 29c5de8780
commit aab4bf7b0d
4 changed files with 47 additions and 2 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ MEM_STATIC FORCE_INLINE_ATTR size_t BIT_getMiddleBits(size_t bitContainer, U32 c
MEM_STATIC FORCE_INLINE_ATTR size_t BIT_getLowerBits(size_t bitContainer, U32 const nbBits)
{
#if STATIC_BMI2
#if defined(STATIC_BMI2) && STATIC_BMI2 == 1
return _bzhi_u64(bitContainer, nbBits);
#else
assert(nbBits < BIT_MASK_SIZE);