From: reed@google.com Date: Mon, 29 Apr 2013 14:31:29 +0000 (+0000) Subject: revert 8897 -- broke clang build X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~12572 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44d37d9d7228e7409f4feea722c26f570434b8fd;p=platform%2Fupstream%2FlibSkiaSharp.git revert 8897 -- broke clang build git-svn-id: http://skia.googlecode.com/svn/trunk@8898 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/include/core/SkMath.h b/include/core/SkMath.h index 2da1a3a..cee3257 100644 --- a/include/core/SkMath.h +++ b/include/core/SkMath.h @@ -40,24 +40,12 @@ int32_t SkSqrtBits(int32_t value, int bitBias); //! Returns the number of leading zero bits (0...32) int SkCLZ_portable(uint32_t); +#if defined(SK_CPU_ARM) + #define SkCLZ(x) __builtin_clz(x) +#endif + #ifndef SkCLZ - #if defined(_MSC_VER) && _MSC_VER >= 1400 - #include - - static inline int SkCLZ(uint32_t mask) { - if (mask) { - DWORD index; - _BitScanReverse(&index, mask); - return index ^ 0x1F; - } else { - return 32; - } - } - #elif defined(SK_CPU_ARM) || defined(__GNUC__) - #define SkCLZ(x) __builtin_clz(x) - #else - #define SkCLZ(x) SkCLZ_portable(x) - #endif + #define SkCLZ(x) SkCLZ_portable(x) #endif /**