Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-09-12 06:14:07 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-12 16:29:54 +0300
commita442da62dc6ea14c43a7aba04a600c9ba7cd7f1b (patch)
treefe0a4da72f2ee4592a2549aabdd5732773708913 /source
parent29af082e4a0f46659f9c54b435ade36f999baa4b (diff)
BLI: Fix bitscan_forward_uint64 unix implementation
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/math_bits_inline.c2
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
}