Fix wide bitops implemenetation

This commit is contained in:
Behdad Esfahbod 2018-02-16 17:49:41 -08:00
parent d25c3e69e9
commit 6a91a2eb04
1 changed files with 2 additions and 2 deletions

View File

@ -374,10 +374,10 @@ _hb_bit_storage (T v)
return sizeof (unsigned int) * 8 - __builtin_clz (v);
if (sizeof (T) <= sizeof (unsigned long))
return sizeof (unsigned int) * 8 - __builtin_clzl (v);
return sizeof (unsigned long) * 8 - __builtin_clzl (v);
if (sizeof (T) <= sizeof (unsigned long long))
return sizeof (unsigned int) * 8 - __builtin_clzll (v);
return sizeof (unsigned long long) * 8 - __builtin_clzll (v);
#endif
#if defined(_MSC_VER) || defined(__MINGW32__)