Skip to content

Commit

Permalink
test: Adjust RB-2.5 simd_test to allow a little more slop on fast_exp (
Browse files Browse the repository at this point in the history
…#4372)

Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz authored Aug 12, 2024
1 parent 857b2a9 commit 75e053f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libutil/simd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1611,8 +1611,8 @@ void test_mathfuncs ()
VEC expA = mkvec<VEC> (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<VEC>(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<VEC>(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<VEC>(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),
Expand Down

0 comments on commit 75e053f

Please sign in to comment.