From 805cc48f03a80b726a8b79fa19fe4a4528223553 Mon Sep 17 00:00:00 2001 From: Alexis Breust Date: Mon, 8 Oct 2018 08:23:50 +0200 Subject: Replaced __builtin_clz by long long version - Fixes #268 --- src/big_int.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/big_int.cpp') diff --git a/src/big_int.cpp b/src/big_int.cpp index 42d28d28c..be4f2cdc1 100644 --- a/src/big_int.cpp +++ b/src/big_int.cpp @@ -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 } -- cgit v1.2.3