Fix: Core: bitscan_reverse_uint64 on Windows
Pull Request: https://projects.blender.org/blender/blender/pulls/139283
This commit is contained in:
parent
7614bf9602
commit
9222daacb7
@ -75,7 +75,7 @@ MINLINE unsigned int bitscan_reverse_uint64(unsigned long long a)
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
unsigned long clz;
|
unsigned long clz;
|
||||||
_BitScanReverse64(&clz, a);
|
_BitScanReverse64(&clz, a);
|
||||||
return 31 - clz;
|
return 63 - clz;
|
||||||
#else
|
#else
|
||||||
return (unsigned int)__builtin_clzll(a);
|
return (unsigned int)__builtin_clzll(a);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user