aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-12-24 01:10:17 +0000
committerRoland McGrath <roland@gnu.org>2003-12-24 01:10:17 +0000
commit4e142297fd024a6537ee5df20626a712fe12dc0f (patch)
tree58ce07b4da8d0f2e11ecf25c441bdaa53d5a8ad7
parent432aaf5b3c599d8eb7e70acf8a9b31fa4185c41f (diff)
downloadglibc-4e142297fd024a6537ee5df20626a712fe12dc0f.tar
glibc-4e142297fd024a6537ee5df20626a712fe12dc0f.tar.gz
glibc-4e142297fd024a6537ee5df20626a712fe12dc0f.tar.bz2
glibc-4e142297fd024a6537ee5df20626a712fe12dc0f.zip
* sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
with omitted middle operand.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/i386/fpu/bits/mathinline.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 31f1cb4cc1..d060d73d60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-22 Jakub Jelinek <jakub@redhat.com>
+
+ * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Avoid using ?:
+ with omitted middle operand.
+
2003-12-22 Jakub Jelinek <jakub@redhat.com>
* posix/regcomp.c: Remove C99-ism.
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h
index fd3c644d7a..ab3b54def5 100644
--- a/sysdeps/i386/fpu/bits/mathinline.h
+++ b/sysdeps/i386/fpu/bits/mathinline.h
@@ -381,7 +381,8 @@ __sincosl (long double __x, long double *__sinx, long double *__cosx) __THROW
("fscale # 2^int(x * log2(e))\n\t" \
: "=t" (__temp) : "0" (1.0), "u" (__exponent)); \
__temp -= 1.0; \
- return __temp + __value ?: __x
+ __temp += __value; \
+ return __temp ? __temp : __x
__inline_mathcodeNP_ (long double, __expm1l, __x, __expm1_code)