Searched refs:deClz32 (Results 1 – 10 of 10) sorted by relevance
83 DE_TEST_ASSERT(deClz32(1u << i) == 31-i); in deInt32_selfTest()84 DE_TEST_ASSERT(deClz32((1u << i) | ((1u << i)-1u)) == 31-i); in deInt32_selfTest()88 DE_TEST_ASSERT(deClz32(0) == 32); in deInt32_selfTest()89 DE_TEST_ASSERT(deClz32(1) == 31); in deInt32_selfTest()90 DE_TEST_ASSERT(deClz32(0xF1) == 24); in deInt32_selfTest()91 DE_TEST_ASSERT(deClz32(0xBC12) == 16); in deInt32_selfTest()92 DE_TEST_ASSERT(deClz32(0xABBACD) == 8); in deInt32_selfTest()93 DE_TEST_ASSERT(deClz32(0x10000000) == 3); in deInt32_selfTest()94 DE_TEST_ASSERT(deClz32(0x20000000) == 2); in deInt32_selfTest()95 DE_TEST_ASSERT(deClz32(0x40000000) == 1); in deInt32_selfTest()[all …]
390 DE_INLINE int deClz32 (deUint32 a) in deClz32() function453 return 31 - deClz32((deUint32)a); in deLog2Floor32()573 return deClz32((deUint32)(a >> 32)); in deClz64()574 return deClz32((deUint32)a) + 32; in deClz64()
151 int shift = deClz32(a); in deRcp32()
149 const int exponent = 31 - deClz32((deUint32)deAbs32(x)); in deInt32ToFloatRoundToNegInf()
182 return 31 - deClz32((deUint32)value); in findMSB()184 return 31 - deClz32(~(deUint32)value); in findMSB()
1025 return 31 - deClz32((deUint32)value); in findMSB()1027 return 31 - deClz32(~(deUint32)value); in findMSB()1035 return 31 - deClz32(value); in findMSB()
88 int l0 = deClz32(val); in roundDownToPowerOfTwo()
87 int l0 = deClz32(val); in roundDownToPowerOfTwo()
3013 return static_cast<deInt8>(7 - deClz32((deUint32)x)); in test_msb()3015 return static_cast<deInt8>(7 - deClz32(~(deUint32)x)); in test_msb()3073 return static_cast<deInt16>(15 - deClz32((deUint32)x)); in test_msb()3075 return static_cast<deInt16>(15 - deClz32(~(deUint32)x)); in test_msb()3133 return 31 - deClz32((deUint32)x); in test_msb()3135 return 31 - deClz32(~(deUint32)x); in test_msb()3219 return 7 - deClz32((deUint32)x); in test_msb()3277 return 15 - deClz32((deUint32)x); in test_msb()3335 return 31 - deClz32(x); in test_msb()
251 return 31 - deClz32((deUint32)value); in findMSB()253 return 31 - deClz32(~(deUint32)value); in findMSB()261 return 31 - deClz32(value); in findMSB()