2005-08-10 Stephen Huw Clarke <stephen.clarke@st.com>

* libm/common/sf_fmax.c: Fix to properly handle NaNs.
        * libm/common/s_max.c: Ditto.
        * libm/common/sf_fmin.c: Ditto.
        * libm/common/s_min.c: Ditto.
This commit is contained in:
Jeff Johnston 2005-08-10 21:02:28 +00:00
parent 56448afa06
commit 234cf97f85
5 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2005-08-10 Stephen Huw Clarke <stephen.clarke@st.com>
* libm/common/sf_fmax.c: Fix to properly handle NaNs.
* libm/common/s_max.c: Ditto.
* libm/common/sf_fmin.c: Ditto.
* libm/common/s_min.c: Ditto.
2005-08-10 DJ Delorie <dj@redhat.com>
* configure.host: Add m32c support.

View File

@ -17,9 +17,9 @@
#endif
{
if (__fpclassifyd(x) == FP_NAN)
return x;
if (__fpclassifyd(y) == FP_NAN)
return y;
if (__fpclassifyd(y) == FP_NAN)
return x;
return x > y ? x : y;
}

View File

@ -17,9 +17,9 @@
#endif
{
if (__fpclassifyd(x) == FP_NAN)
return x;
if (__fpclassifyd(y) == FP_NAN)
return y;
if (__fpclassifyd(y) == FP_NAN)
return x;
return x < y ? x : y;
}

View File

@ -15,9 +15,9 @@
#endif
{
if (__fpclassifyf(x) == FP_NAN)
return x;
if (__fpclassifyf(y) == FP_NAN)
return y;
if (__fpclassifyf(y) == FP_NAN)
return x;
return x > y ? x : y;
}

View File

@ -15,9 +15,9 @@
#endif
{
if (__fpclassifyf(x) == FP_NAN)
return x;
if (__fpclassifyf(y) == FP_NAN)
return y;
if (__fpclassifyf(y) == FP_NAN)
return x;
return x < y ? x : y;
}