diff options
| author | Alexis Breust <alexis.breust@gmail.com> | 2018-10-08 08:23:50 +0200 |
|---|---|---|
| committer | Alexis Breust <alexis.breust@gmail.com> | 2018-10-08 08:23:50 +0200 |
| commit | 805cc48f03a80b726a8b79fa19fe4a4528223553 (patch) | |
| tree | b7154b709f8f24cdae57aee6bffbec950994454f /src/big_int.cpp | |
| parent | 1a4e25f14149428ff19f2da239abe54ff0083632 (diff) | |
Replaced __builtin_clz by long long version - Fixes #268
Diffstat (limited to 'src/big_int.cpp')
| -rw-r--r-- | src/big_int.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |