aboutsummaryrefslogtreecommitdiff
path: root/pl/math/v_tanhf_2u6.c
diff options
context:
space:
mode:
Diffstat (limited to 'pl/math/v_tanhf_2u6.c')
-rw-r--r--pl/math/v_tanhf_2u6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pl/math/v_tanhf_2u6.c b/pl/math/v_tanhf_2u6.c
index c10be40..dedc085 100644
--- a/pl/math/v_tanhf_2u6.c
+++ b/pl/math/v_tanhf_2u6.c
@@ -69,9 +69,9 @@ VPCS_ATTR v_f32_t V_NAME (tanhf) (v_f32_t x)
v_u32_t is_boring = v_cond_u32 (iax > BoringBound);
v_f32_t boring = v_as_f32_u32 (sign | One);
-#if WANT_ERRNO
- /* If errno needs to be set properly, set all special and boring lanes to 1,
- which will trigger no exceptions, and fix them up later. */
+#if WANT_SIMD_EXCEPT
+ /* If fp exceptions are to be triggered properly, set all special and boring
+ lanes to 1, which will trigger no exceptions, and fix them up later. */
v_u32_t special = v_cond_u32 ((iax > 0x7f800000) | (iax < 0x34000000));
ix = v_sel_u32 (is_boring, v_u32 (One), ix);
if (unlikely (v_any_u32 (special)))
@@ -92,7 +92,7 @@ VPCS_ALIAS
PL_SIG (V, F, 1, tanh, -10.0, 10.0)
PL_TEST_ULP (V_NAME (tanhf), 2.09)
-PL_TEST_EXPECT_FENV (V_NAME (tanhf), WANT_ERRNO)
+PL_TEST_EXPECT_FENV (V_NAME (tanhf), WANT_SIMD_EXCEPT)
PL_TEST_INTERVAL (V_NAME (tanhf), 0, 0x1p-23, 1000)
PL_TEST_INTERVAL (V_NAME (tanhf), -0, -0x1p-23, 1000)
PL_TEST_INTERVAL (V_NAME (tanhf), 0x1p-23, 0x1.205966p+3, 100000)