Skip to content

Commit

Permalink
Arith: Correct SIMD tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Sep 12, 2024
1 parent f26576f commit ed4293d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Arith/src/simd.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void TestSIMD() {
check(isapprox(copysign(a, b), copysign(s, t)));
check(isapprox(cos(a), cos(s)));
check(isapprox(cosh(a), cosh(s)));
check(isapprox(cospi(a), cos(M_PI * s)));
check(isapprox(cospi(a), cos(CCTK_REAL(M_PI) * s)));
check(isapprox(exp(a), exp(s)));
check(isapprox(exp10(a), exp10(s)));
check(isapprox(exp2(a), exp2(s)));
Expand Down Expand Up @@ -182,7 +182,7 @@ void TestSIMD() {
check(isequal(signbit(a), signbit(s)));
check(isapprox(sin(a), sin(s)));
check(isapprox(sinh(a), sinh(s)));
check(isapprox(sinpi(a), sin(M_PI * s)));
check(isapprox(sinpi(a), sin(CCTK_REAL(M_PI) * s)));
check(isapprox(sqrt(a), sqrt(s)));
check(isapprox(tan(a), tan(s)));
check(isapprox(tanh(a), tanh(s)));
Expand Down

0 comments on commit ed4293d

Please sign in to comment.