diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-12 06:14:07 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-12 16:29:54 +0300 |
commit | a442da62dc6ea14c43a7aba04a600c9ba7cd7f1b (patch) | |
tree | fe0a4da72f2ee4592a2549aabdd5732773708913 /source/blender/blenlib | |
parent | 29af082e4a0f46659f9c54b435ade36f999baa4b (diff) |
BLI: Fix bitscan_forward_uint64 unix implementation
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/math_bits_inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_bits_inline.c b/source/blender/blenlib/intern/math_bits_inline.c index 3a0cea182ba..ba18bb73850 100644 --- a/source/blender/blenlib/intern/math_bits_inline.c +++ b/source/blender/blenlib/intern/math_bits_inline.c @@ -48,7 +48,7 @@ MINLINE unsigned int bitscan_forward_uint64(unsigned long long a) _BitScanForward64(&ctz, a); return ctz; #else - return (unsigned int)__builtin_ctz(a); + return (unsigned int)__builtin_ctzll(a); #endif } |