summaryrefslogtreecommitdiff
path: root/math/s_cprojf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_cprojf.c')
-rw-r--r--math/s_cprojf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/math/s_cprojf.c b/math/s_cprojf.c
index 188bbe3beb..e4dbc181bd 100644
--- a/math/s_cprojf.c
+++ b/math/s_cprojf.c
@@ -24,9 +24,7 @@
__complex__ float
__cprojf (__complex__ float x)
{
- if (isnan (__real__ x) && isnan (__imag__ x))
- return x;
- else if (!isfinite (__real__ x) || !isfinite (__imag__ x))
+ if (__isinf_nsf (__real__ x) || __isinf_nsf (__imag__ x))
{
__complex__ float res;