Commit: a442da62dc6ea14c43a7aba04a600c9ba7cd7f1b
Author: Clément Foucault
Date:   Sat Sep 12 05:14:07 2020 +0200
Branches: master
https://developer.blender.org/rBa442da62dc6ea14c43a7aba04a600c9ba7cd7f1b

BLI: Fix bitscan_forward_uint64 unix implementation

===================================================================

M       source/blender/blenlib/intern/math_bits_inline.c

===================================================================

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
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to