diff options
author | Ethan-Hall <Ethan1080> | 2022-03-23 17:53:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-03-23 22:06:12 +0300 |
commit | f5066d43ae572de929fea31cbc9e091e288b2435 (patch) | |
tree | c585a7551aae6b899064e88b570046f606a76f7a /intern/cycles/util/math_matrix.h | |
parent | 4e56e738a8f35228873d6e84d9e9f8b0e7a74a59 (diff) |
Cleanup: use make_float4(f) zero_float4() to simplify code
Differential Revision: https://developer.blender.org/D14426
Diffstat (limited to 'intern/cycles/util/math_matrix.h')
-rw-r--r-- | intern/cycles/util/math_matrix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/math_matrix.h b/intern/cycles/util/math_matrix.h index a4318fda6e8..b10d9b3c938 100644 --- a/intern/cycles/util/math_matrix.h +++ b/intern/cycles/util/math_matrix.h @@ -376,7 +376,7 @@ ccl_device void math_matrix_jacobi_eigendecomposition(ccl_private float *A, ccl_device_inline void math_vector_zero_sse(float4 *A, int n) { for (int i = 0; i < n; i++) { - A[i] = make_float4(0.0f); + A[i] = zero_float4(); } } @@ -384,7 +384,7 @@ ccl_device_inline void math_matrix_zero_sse(float4 *A, int n) { for (int row = 0; row < n; row++) { for (int col = 0; col <= row; col++) { - MAT(A, n, row, col) = make_float4(0.0f); + MAT(A, n, row, col) = zero_float4(); } } } |