[Bf-blender-cvs] [c5d59f64d3f] cycles-x: Fix warning building on macOS Arm

Brecht Van Lommel noreply at git.blender.org
Thu Sep 9 14:12:12 CEST 2021


Commit: c5d59f64d3f9842091591033ef07042917225edd
Author: Brecht Van Lommel
Date:   Thu Sep 9 03:36:28 2021 +0200
Branches: cycles-x
https://developer.blender.org/rBc5d59f64d3f9842091591033ef07042917225edd

Fix warning building on macOS Arm

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

M	intern/cycles/util/util_math.h

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

diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h
index 8c186e5e11f..6d728dde679 100644
--- a/intern/cycles/util/util_math.h
+++ b/intern/cycles/util/util_math.h
@@ -797,7 +797,7 @@ ccl_device_inline uint32_t reverse_integer_bits(uint32_t x)
 {
   /* Use a native instruction if it exists. */
 #if defined(__arm__) || defined(__aarch64__)
-  __asm__("rbit %0, %1" : "=r"(x) : "r"(x));
+  __asm__("rbit %w0, %w1" : "=r"(x) : "r"(x));
   return x;
 #elif defined(__KERNEL_CUDA__)
   return __brev(x);



More information about the Bf-blender-cvs mailing list