Replaced __builtin_clz by long long version - Fixes #268

This commit is contained in:
Alexis Breust
2018-10-08 08:23:50 +02:00
parent 1a4e25f141
commit 805cc48f03
+1 -1
View File
@@ -735,7 +735,7 @@ u64 leading_zeros_u64(u64 x) {
#if defined(GB_COMPILER_MSVC)
return __lzcnt64(x);
#else
return cast(u64)__builtin_clz(cast(unsigned long long)x);
return cast(u64)__builtin_clzll(cast(unsigned long long)x);
#endif
}