X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWTF%2Fwtf%2FMathExtras.h;h=9118112bf1688cdc8fdb34e76eba91d17b8013bc;hp=f3e0933f3ad4e1fc98246ff58eb0e923a830143a;hb=b828c854d8e8509579573b35be0f54d9df51f40e;hpb=6b0b86a4e0f7164dc695dcbd98856ebc9b0ddc67 diff --git a/Source/WTF/wtf/MathExtras.h b/Source/WTF/wtf/MathExtras.h index f3e0933..9118112 100644 --- a/Source/WTF/wtf/MathExtras.h +++ b/Source/WTF/wtf/MathExtras.h @@ -575,30 +575,6 @@ inline unsigned clz64(uint64_t number) #endif } -inline unsigned ctz32(uint32_t number) -{ -#if COMPILER(GCC_COMPATIBLE) - if (!number) - return __builtin_ctz(number); - return 32; -#elif COMPILER(MSVC) && !CPU(X86) - unsigned long ret = 0; - if (_BitScanForward(&ret, number)) - return ret; - return 32; -#else - unsigned zeroCount = 0; - for (unsigned i = 0; i < 32; i++) { - if (number & 1) - break; - - zeroCount++; - number >>= 1; - } - return zeroCount; -#endif -} - } // namespace WTF using WTF::opaque; @@ -608,6 +584,5 @@ using WTF::preciseIndexMaskShiftForSize; using WTF::shuffleVector; using WTF::clz32; using WTF::clz64; -using WTF::ctz32; #endif // #ifndef WTF_MathExtras_h