about summary refs log tree commit diff
path: root/math/tgmath.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-05-17 07:11:00 +0000
committerUlrich Drepper <drepper@redhat.com>2001-05-17 07:11:00 +0000
commit304d7abfadb59d53c078c43bf825d13d279992c0 (patch)
treefec6f832bfe4b8668556f3c64e6eb7150c181546 /math/tgmath.h
parentd1abdd5c07fd4479d4981b12c5719e74a4c80189 (diff)
downloadglibc-304d7abfadb59d53c078c43bf825d13d279992c0.tar.gz
glibc-304d7abfadb59d53c078c43bf825d13d279992c0.tar.xz
glibc-304d7abfadb59d53c078c43bf825d13d279992c0.zip
Update.
2001-05-14  Bruno Haible  <haible@clisp.cons.org>

	* iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): If SO is seen
	without previous announcement, reject it regularly, don't abort.

2001-05-16  Ulrich Drepper  <drepper@redhat.com>

	* math/tgmath.h: Fix handling of int parameters to binary and
	ternary functions.  Reported by mitr@volny.cz.

	* math/test-tgmath.c: Add tests for calls with integer parameters.

	* manual/llio.texi: Many grammar and typo fixes to the section on AIO.
Diffstat (limited to 'math/tgmath.h')
-rw-r--r--math/tgmath.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/math/tgmath.h b/math/tgmath.h
index 0c02aaa6e7..1c085654c3 100644
--- a/math/tgmath.h
+++ b/math/tgmath.h
@@ -93,8 +93,8 @@
 			 __tgmres = __tgml(Fct) (Val1, Val2);		      \
 		       else if (sizeof (Val1) == sizeof (double)	      \
 				|| sizeof (Val2) == sizeof (double)	      \
-				|| __builtin_classify_type ((Val1)	      \
-							    + (Val2)) != 8)   \
+				|| __builtin_classify_type (Val1) != 8	      \
+				|| __builtin_classify_type (Val2) != 8)	      \
 			 __tgmres = Fct (Val1, Val2);			      \
 		       else						      \
 			 __tgmres = Fct##f (Val1, Val2);		      \
@@ -108,8 +108,8 @@
 			 __tgmres = __tgml(Fct) (Val1, Val2, Val3);	      \
 		       else if (sizeof (Val1) == sizeof (double)	      \
 				|| sizeof (Val2) == sizeof (double)	      \
-				|| __builtin_classify_type ((Val1)	      \
-							    + (Val2)) != 8)   \
+				|| __builtin_classify_type (Val1) != 8	      \
+				|| __builtin_classify_type (Val2) != 8)	      \
 			 __tgmres = Fct (Val1, Val2, Val3);		      \
 		       else						      \
 			 __tgmres = Fct##f (Val1, Val2, Val3);		      \
@@ -126,8 +126,9 @@
 		       else if (sizeof (Val1) == sizeof (double)	      \
 				|| sizeof (Val2) == sizeof (double)	      \
 				|| sizeof (Val3) == sizeof (double)	      \
-				|| __builtin_classify_type ((Val1) + (Val2)   \
-							    + (Val3)) != 8)   \
+				|| __builtin_classify_type (Val1) != 8	      \
+				|| __builtin_classify_type (Val2) != 8	      \
+				|| __builtin_classify_type (Val3) != 8)	      \
 			 __tgmres = Fct (Val1, Val2, Val3);		      \
 		       else						      \
 			 __tgmres = Fct##f (Val1, Val2, Val3);		      \
@@ -194,9 +195,10 @@
 			 }						      \
 		       else if (sizeof (__real__ (Val1)) == sizeof (double)   \
 				|| sizeof (__real__ (Val2)) == sizeof(double) \
-				|| __builtin_classify_type (__real__ (Val1)   \
-							    + __real__ (Val2))\
-				   != 8)				      \
+				|| (__builtin_classify_type (__real__ (Val1)) \
+				    != 8)				      \
+				|| (__builtin_classify_type (__real__ (Val2)) \
+				    != 8))				      \
 			 {						      \
 			   if (sizeof (__real__ (Val1)) == sizeof (Val1)      \
 			       && sizeof (__real__ (Val2)) == sizeof (Val2))  \