summaryrefslogtreecommitdiff
path: root/math/s_csinh_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_csinh_template.c')
-rw-r--r--math/s_csinh_template.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/math/s_csinh_template.c b/math/s_csinh_template.c
index 45fbb36fd9..e5fd4d5857 100644
--- a/math/s_csinh_template.c
+++ b/math/s_csinh_template.c
@@ -97,10 +97,7 @@ M_DECL_FUNC (__csinh) (CFLOAT x)
{
/* Real part is 0.0. */
__real__ retval = M_COPYSIGN (0, negate ? -1 : 1);
- __imag__ retval = M_NAN;
-
- if (icls == FP_INFINITE)
- feraiseexcept (FE_INVALID);
+ __imag__ retval = __imag__ x - __imag__ x;
}
else
{
@@ -144,10 +141,7 @@ M_DECL_FUNC (__csinh) (CFLOAT x)
else
{
__real__ retval = M_HUGE_VAL;
- __imag__ retval = M_NAN;
-
- if (icls == FP_INFINITE)
- feraiseexcept (FE_INVALID);
+ __imag__ retval = __imag__ x - __imag__ x;
}
}
else