diff options
| author | Ulrich Drepper <drepper@redhat.com> | 2004-09-30 06:16:28 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-30 06:16:28 +0000 |
| commit | 3e08e73f580f2c0a8f93227f477865eefd732458 (patch) | |
| tree | cf538572a22739362ae8ea8ae6f7364417c6dc06 /sysdeps/alpha/fpu/bits/mathinline.h | |
| parent | 6fae1eca92192539d416730d9f26c3b6a9425e9d (diff) | |
| download | glibc-3e08e73f580f2c0a8f93227f477865eefd732458.tar.xz glibc-3e08e73f580f2c0a8f93227f477865eefd732458.zip | |
(__fdimf, __fdim, fdimf, fdim): Handle +inf/+inf.
Diffstat (limited to 'sysdeps/alpha/fpu/bits/mathinline.h')
| -rw-r--r-- | sysdeps/alpha/fpu/bits/mathinline.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/alpha/fpu/bits/mathinline.h b/sysdeps/alpha/fpu/bits/mathinline.h index d3a76bad2b..187bd42f33 100644 --- a/sysdeps/alpha/fpu/bits/mathinline.h +++ b/sysdeps/alpha/fpu/bits/mathinline.h @@ -149,25 +149,25 @@ __MATH_INLINE double __NTH (floor (double __x)) { return __floor(__x); } __MATH_INLINE float __NTH (__fdimf (float __x, float __y)) { - return __x < __y ? 0.0f : __x - __y; + return __x <= __y ? 0.0f : __x - __y; } __MATH_INLINE float __NTH (fdimf (float __x, float __y)) { - return __x < __y ? 0.0f : __x - __y; + return __x <= __y ? 0.0f : __x - __y; } __MATH_INLINE double __NTH (__fdim (double __x, double __y)) { - return __x < __y ? 0.0 : __x - __y; + return __x <= __y ? 0.0 : __x - __y; } __MATH_INLINE double __NTH (fdim (double __x, double __y)) { - return __x < __y ? 0.0 : __x - __y; + return __x <= __y ? 0.0 : __x - __y; } /* Test for negative number. Used in the signbit() macro. */ |
