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/sf_fmax.c')
-rw-r--r--newlib/libm/common/sf_fmax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libm/common/sf_fmax.c b/newlib/libm/common/sf_fmax.c
index ac1bf46f5..292b99edf 100644
--- a/newlib/libm/common/sf_fmax.c
+++ b/newlib/libm/common/sf_fmax.c
@@ -15,9 +15,9 @@
#endif
{
if (__fpclassifyf(x) == FP_NAN)
- return y;
- if (__fpclassifyf(y) == FP_NAN)
return x;
+ if (__fpclassifyf(y) == FP_NAN)
+ return y;
return x > y ? x : y;
}