Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/common/s_fmax.c')
-rw-r--r--newlib/libm/common/s_fmax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libm/common/s_fmax.c b/newlib/libm/common/s_fmax.c
index 53e1559e3..2de04efab 100644
--- a/newlib/libm/common/s_fmax.c
+++ b/newlib/libm/common/s_fmax.c
@@ -17,9 +17,9 @@
#endif
{
if (__fpclassifyd(x) == FP_NAN)
- return y;
- if (__fpclassifyd(y) == FP_NAN)
return x;
+ if (__fpclassifyd(y) == FP_NAN)
+ return y;
return x > y ? x : y;
}