From 75e053f3d5932f4a8d69743cf35df251d37ad205 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Mon, 12 Aug 2024 10:51:47 -0700 Subject: [PATCH] test: Adjust RB-2.5 simd_test to allow a little more slop on fast_exp (#4372) Signed-off-by: Larry Gritz --- src/libutil/simd_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/simd_test.cpp b/src/libutil/simd_test.cpp index 99c377a303..4c9b9b06ac 100644 --- a/src/libutil/simd_test.cpp +++ b/src/libutil/simd_test.cpp @@ -1611,8 +1611,8 @@ void test_mathfuncs () VEC expA = mkvec (0.367879441171442f, 1.0f, 2.718281828459045f, 90.0171313005218f); OIIO_CHECK_SIMD_EQUAL (exp(A), expA); OIIO_CHECK_SIMD_EQUAL_THRESH (log(expA), A, 1e-6f); - OIIO_CHECK_SIMD_EQUAL (fast_exp(A), - mkvec(fast_exp(A[0]), fast_exp(A[1]), fast_exp(A[2]), fast_exp(A[3]))); + OIIO_CHECK_SIMD_EQUAL_THRESH (fast_exp(A), + mkvec(fast_exp(A[0]), fast_exp(A[1]), fast_exp(A[2]), fast_exp(A[3])), 1e-4f); OIIO_CHECK_SIMD_EQUAL_THRESH (fast_log(expA), mkvec(fast_log(expA[0]), fast_log(expA[1]), fast_log(expA[2]), fast_log(expA[3])), 0.00001f); OIIO_CHECK_SIMD_EQUAL_THRESH (fast_pow_pos(VEC(2.0f), A),