aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-02 01:19:29 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-02 01:19:29 +0000
commitca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924 (patch)
treed8267bf4da68e57f15d9e0fff328187a34876514 /math
parent8fb81470d9466b7e3d60cbfd6fc2d04fd1aae78a (diff)
downloadglibc-ca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924.tar
glibc-ca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924.tar.gz
glibc-ca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924.tar.bz2
glibc-ca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924.zip
Update.
* sysdeps/ia64/bits/byteswap.h: New file. Patch by Dan Pop <Dan.Pop@cern.ch>. * misc/sys/cdefs.h: Define __attribute_format_arg__. * intl/libintl.h: Use it here instead of using __attribute__ directly. 2000-07-13 H.J. Lu <hjl@gnu.org> * posix/regex.c (re_max_failures): Set to 4000. 2000-08-01 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'math')
-rw-r--r--math/tgmath.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/math/tgmath.h b/math/tgmath.h
index ccc304ca62..aaf0f201c7 100644
--- a/math/tgmath.h
+++ b/math/tgmath.h
@@ -128,7 +128,7 @@
# define __TGMATH_UNARY_REAL_IMAG(Val, Fct, Cfct) \
(__extension__ ({ __tgmath_real_type (Val) __tgmres; \
if (sizeof (__real__ (Val)) > sizeof (double) \
- && __builtin_classify_type (Val) == 8) \
+ && __builtin_classify_type (__real__ (Val)) == 8) \
{ \
if (sizeof (__real__ (Val)) == sizeof (Val)) \
__tgmres = Fct##l (Val); \
@@ -136,7 +136,8 @@
__tgmres = Cfct##l (Val); \
} \
else if (sizeof (__real__ (Val)) == sizeof (double) \
- || __builtin_classify_type (Val) != 8) \
+ || (__builtin_classify_type (__real__ (Val)) \
+ != 8) \
{ \
if (sizeof (__real__ (Val)) == sizeof (Val)) \
__tgmres = Fct (Val); \
@@ -157,7 +158,7 @@
# define __TGMATH_UNARY_IMAG_ONLY(Val, Fct) \
(__extension__ ({ __tgmath_real_type (Val) __tgmres; \
if (sizeof (Val) == sizeof (__complex__ double) \
- || __builtin_classify_type (Val) != 8) \
+ || __builtin_classify_type (__real__ (Val)) != 8) \
__tgmres = Fct (Val); \
else if (sizeof (Val) == sizeof (__complex__ float)) \
__tgmres = Fct##f (Val); \
@@ -171,7 +172,7 @@
(__extension__ ({ __tgmath_real_type ((Val1) + (Val2)) __tgmres; \
if ((sizeof (__real__ (Val1)) > sizeof (double) \
|| sizeof (__real__ (Val2)) > sizeof (double)) \
- && __builtin_classify_type (Val) == 8) \
+ && __builtin_classify_type (__real__ (Val)) == 8) \
{ \
if (sizeof (__real__ (Val1)) == sizeof (Val1) \
&& sizeof (__real__ (Val2)) == sizeof (Val2)) \
@@ -181,7 +182,8 @@
} \
else if (sizeof (__real__ (Val1)) == sizeof (double) \
|| sizeof (__real__ (Val2)) == sizeof(double) \
- || __builtin_classify_type (Val) != 8) \
+ || (__builtin_classify_type (__real__ (Val)) \
+ != 8) \
{ \
if (sizeof (__real__ (Val1)) == sizeof (Val1) \
&& sizeof (__real__ (Val2)) == sizeof (Val2)) \