summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/include/bx/uint32_t.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bx/include/bx/uint32_t.h')
-rw-r--r--3rdparty/bx/include/bx/uint32_t.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/bx/include/bx/uint32_t.h b/3rdparty/bx/include/bx/uint32_t.h
index ce04e047721..9e77295c5e5 100644
--- a/3rdparty/bx/include/bx/uint32_t.h
+++ b/3rdparty/bx/include/bx/uint32_t.h
@@ -648,7 +648,7 @@ namespace bx
inline uint64_t uint64_cntlz(uint64_t _val)
{
#if BX_COMPILER_GCC || BX_COMPILER_CLANG
- return __builtin_clz(_val);
+ return __builtin_clzll(_val);
#elif BX_COMPILER_MSVC && BX_PLATFORM_WINDOWS && BX_ARCH_64BIT
unsigned long index;
_BitScanReverse64(&index, _val);
@@ -669,7 +669,7 @@ namespace bx
inline uint64_t uint64_cnttz(uint64_t _val)
{
#if BX_COMPILER_GCC || BX_COMPILER_CLANG
- return __builtin_ctzl(_val);
+ return __builtin_ctzll(_val);
#elif BX_COMPILER_MSVC && BX_PLATFORM_WINDOWS && BX_ARCH_64BIT
unsigned long index;
_BitScanForward64(&index, _val);