aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha/fpu/bits/mathinline.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-30 06:16:28 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-30 06:16:28 +0000
commit3e08e73f580f2c0a8f93227f477865eefd732458 (patch)
treecf538572a22739362ae8ea8ae6f7364417c6dc06 /sysdeps/alpha/fpu/bits/mathinline.h
parent6fae1eca92192539d416730d9f26c3b6a9425e9d (diff)
downloadglibc-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.h8
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. */