about summary refs log tree commit diff
path: root/sysdeps/powerpc/fpu/bits
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2000-10-19 08:15:41 +0000
committerGeoff Keating <geoffk@cygnus.com>2000-10-19 08:15:41 +0000
commit781ca93d82d7cc1375fce9d06d1f3b4e1e0c8620 (patch)
tree5d9e59de4b69c4ed13a37e1fab84504d5a1bc00f /sysdeps/powerpc/fpu/bits
parentc6e6c9c89638686b38e31aea84be89af8a4a5c3b (diff)
downloadglibc-781ca93d82d7cc1375fce9d06d1f3b4e1e0c8620.tar.gz
glibc-781ca93d82d7cc1375fce9d06d1f3b4e1e0c8620.tar.xz
glibc-781ca93d82d7cc1375fce9d06d1f3b4e1e0c8620.zip
* sysdeps/powerpc/fpu/bits/mathinline.h: Add versions
of the unordered comparison functions that use the GCC builtins.
2000-10-19  Geoffrey Keating  <geoffk@cygnus.com>
Diffstat (limited to 'sysdeps/powerpc/fpu/bits')
-rw-r--r--sysdeps/powerpc/fpu/bits/mathinline.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sysdeps/powerpc/fpu/bits/mathinline.h b/sysdeps/powerpc/fpu/bits/mathinline.h
index e4f208cd41..0548f92f1e 100644
--- a/sysdeps/powerpc/fpu/bits/mathinline.h
+++ b/sysdeps/powerpc/fpu/bits/mathinline.h
@@ -21,6 +21,17 @@
 #if defined __GNUC__ && !defined _SOFT_FLOAT
 
 #ifdef __USE_ISOC99
+#if __GNUC_PREREQ (2,96)
+
+#define isgreater(x, y) __builtin_isgreater (x, y)
+#define isgreaterequal(x, y) __builtin_isgreaterequal (x, y)
+#define isless(x, y) __builtin_isless (x, y)
+#define islessequal(x, y) __builtin_islessequal (x, y)
+#define islessgreater(x, y) __builtin_islessgreater (x, y)
+#define isunordered(x, y) __builtin_isunordered (x, y)
+
+#else
+
 # define __unordered_cmp(x, y) \
   (__extension__							      \
    ({ __typeof__(x) __x = (x); __typeof__(y) __y = (y);			      \
@@ -35,7 +46,9 @@
 # define islessequal(x, y) ((__unordered_cmp (x, y) & 0xA) != 0)
 # define islessgreater(x, y) ((__unordered_cmp (x, y) & 0xC) != 0)
 # define isunordered(x, y) (__unordered_cmp (x, y) & 1)
-#endif /* __USE_ISOC99 && !_SOFT_FLOAT */
+
+#endif /* __GNUC_PREREQ (2,97) */
+#endif /* __USE_ISOC99 */
 
 #if !defined __NO_MATH_INLINES && defined __OPTIMIZE__