Update SIMD booleans to use bitwise logic operators Vectors should use (a | b) as opposed to (a || b). Diffs= 701d8dee2 Update SIMD booleans to use bitwise logic operators
diff --git a/.rive_head b/.rive_head index 04fcdcd..ea97e61 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -e98b93a61cfa2a193ac2850b91f878be994fcdb4 +701d8dee259639d05720494ef7076e88c24e176e
diff --git a/include/rive/math/simd.hpp b/include/rive/math/simd.hpp index dfc38fb..fd75adf 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 }