diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2020-05-07 08:13:14 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-05-24 13:53:25 +0200 |
commit | cf3f8bd671537820e423e212ebba2fb0a90b16cc (patch) | |
tree | ec7a96da96a12ead41e2b70ff86116ae44272ed0 /fallback_builtins.h | |
parent | 8785c980fd47819fe0b5414cf7f188ff12a865c8 (diff) |
Removed fallback for __builtin_ctzl since it is no longer used.
Diffstat (limited to 'fallback_builtins.h')
-rw-r--r-- | fallback_builtins.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fallback_builtins.h b/fallback_builtins.h index cd597f6..f855792 100644 --- a/fallback_builtins.h +++ b/fallback_builtins.h @@ -23,20 +23,6 @@ static __forceinline unsigned long __builtin_ctz(uint32_t value) { } #define HAVE_BUILTIN_CTZ -/* This is not a general purpose replacement for __builtin_ctzl. The function expects that value is != 0 - * Because of that assumption trailing_zero is not initialized and the return value of _BitScanForward is not checked - */ -static __forceinline unsigned long __builtin_ctzl(unsigned long value) { -#ifdef X86_CPUID - x86_check_features(); - if (x86_cpu_has_tzcnt) - return _tzcnt_u32(value); -#endif - unsigned long trailing_zero; - _BitScanForward(&trailing_zero, value); - return trailing_zero; -} - #ifdef _M_AMD64 /* This is not a general purpose replacement for __builtin_ctzll. The function expects that value is != 0 * Because of that assumption trailing_zero is not initialized and the return value of _BitScanForward64 is not checked |