Revert "Update SIMD booleans to use bitwise logic operators" Reverts rive-app/rive#4385 I was wrong; boolean operators are officially supported: https://clang.llvm.org/docs/LanguageExtensions.html#vectors-and-extended-vectors Diffs= ec9fb5bfc Revert "Update SIMD booleans to use bitwise logic operators"
diff --git a/.rive_head b/.rive_head index ea97e61..b72dae7 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -701d8dee259639d05720494ef7076e88c24e176e +ec9fb5bfcc6442c4e674ddac9a7bfad08ef5151a
diff --git a/include/rive/math/simd.hpp b/include/rive/math/simd.hpp index fd75adf..dfc38fb 100644 --- a/include/rive/math/simd.hpp +++ b/include/rive/math/simd.hpp
@@ -84,7 +84,7 @@ #else #pragma message("performance: __builtin_elementwise_min() not supported. Consider updating clang.") // Generate the same behavior for NaN as the SIMD builtins. (isnan() is a no-op for int types.) - return ((b < a) | isnan(a)) ? b : a; + return b < a || isnan(a) ? b : a; #endif } @@ -97,7 +97,7 @@ #else #pragma message("performance: __builtin_elementwise_max() not supported. Consider updating clang.") // Generate the same behavior for NaN as the SIMD builtins. (isnan() is a no-op for int types.) - return ((a < b) | isnan(a)) ? b : a; + return a < b || isnan(a) ? b : a; #endif }