diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/util/util_simd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/util/util_simd.h b/intern/cycles/util/util_simd.h index 9b86e8be72e..39506a6359b 100644 --- a/intern/cycles/util/util_simd.h +++ b/intern/cycles/util/util_simd.h @@ -225,7 +225,7 @@ __forceinline int __btr(int v, int i) { int r = 0; asm ("btr %1,%0" : "=r"(r) : "r"(i), "0"(v) : "flags"); return r; } -#if defined(__KERNEL_64_BIT__) +#if defined(__KERNEL_64_BIT__) || defined(__APPLE__) __forceinline size_t __bsf(size_t v) { size_t r = 0; asm ("bsf %1,%0" : "=r"(r) : "r"(v)); return r; } @@ -267,7 +267,7 @@ __forceinline unsigned int bitscan(unsigned int v) { #endif } -#if defined(__KERNEL_64_BIT__) +#if defined(__KERNEL_64_BIT__) || defined(__APPLE__) __forceinline size_t bitscan(size_t v) { #if defined(__KERNEL_AVX2__) #if defined(__KERNEL_64_BIT__) @@ -309,7 +309,7 @@ __forceinline unsigned int __bscf(unsigned int& v) return i; } -#if defined(__KERNEL_64_BIT__) +#if defined(__KERNEL_64_BIT__) || defined(__APPLE__) __forceinline size_t __bscf(size_t& v) { size_t i = bitscan(v); |