Disabled lzcnt intrinsic usage for now.
This commit is contained in:
parent
24b13b03f5
commit
be1c60c74f
|
@ -61,7 +61,8 @@ T next_pow2(T value) {
|
||||||
// return value is the size of the input operand (8, 16, 32, or 64). If the most
|
// return value is the size of the input operand (8, 16, 32, or 64). If the most
|
||||||
// significant bit of value is one, the return value is zero.
|
// significant bit of value is one, the return value is zero.
|
||||||
#if XE_COMPILER_MSVC
|
#if XE_COMPILER_MSVC
|
||||||
#if 1
|
// TODO(benvanik): runtime magic so these point to an appropriate implementation at runtime based on CPU features
|
||||||
|
#if 0
|
||||||
inline uint8_t lzcnt(uint8_t v) {
|
inline uint8_t lzcnt(uint8_t v) {
|
||||||
return static_cast<uint8_t>(__lzcnt16(v) - 8);
|
return static_cast<uint8_t>(__lzcnt16(v) - 8);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue