Disabled lzcnt intrinsic usage for now.

This commit is contained in:
gibbed 2015-05-12 00:48:39 -05:00
parent 24b13b03f5
commit be1c60c74f
1 changed files with 2 additions and 1 deletions

View File

@ -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);
} }