diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-03-10 06:05:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-03-10 06:05:14 +0000 |
commit | f4c024d1f956a7e853eba10ce33ab6851b5d43d1 (patch) | |
tree | 1e1fb47ee60867cc36f948b08e1388786b3ad161 /sysdeps/powerpc | |
parent | 8b9d605485be779bb03778e780e9875525ec2ca4 (diff) | |
download | glibc-f4c024d1f956a7e853eba10ce33ab6851b5d43d1.tar.gz glibc-f4c024d1f956a7e853eba10ce33ab6851b5d43d1.tar.xz glibc-f4c024d1f956a7e853eba10ce33ab6851b5d43d1.zip |
Update.
2004-03-09 Richard Henderson <rth@redhat.com> * math/math.h (isgreater, isgreaterequal, isless, islessequal, islessgreater, isunordered): Use builtins if available. * sysdeps/i386/fpu/bits/mathinline.h: Don't define via builtins. * sysdeps/m68k/fpu/bits/mathinline.h: Likewise. * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise. * sysdeps/sparc/fpu/bits/mathinline.h: Likewise. * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise. * sysdeps/alpha/fpu/bits/mathinline.h (isgreater, isgreaterequal, isless, islessequal, islessgreater): Remove; use default. (isunordered): Convert inputs to double.
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/fpu/bits/mathinline.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/sysdeps/powerpc/fpu/bits/mathinline.h b/sysdeps/powerpc/fpu/bits/mathinline.h index dcd506d49e..01956d9ee8 100644 --- a/sysdeps/powerpc/fpu/bits/mathinline.h +++ b/sysdeps/powerpc/fpu/bits/mathinline.h @@ -21,17 +21,7 @@ #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 - +# if !__GNUC_PREREQ (2,97) # define __unordered_cmp(x, y) \ (__extension__ \ ({ __typeof__(x) __x = (x); __typeof__(y) __y = (y); \ @@ -40,6 +30,13 @@ : "cr7"); \ __r; })) +# undef isgreater +# undef isgreaterequal +# undef isless +# undef islessequal +# undef islessgreater +# undef isunordered + # define isgreater(x, y) (__unordered_cmp (x, y) >> 2 & 1) # define isgreaterequal(x, y) ((__unordered_cmp (x, y) & 6) != 0) # define isless(x, y) (__unordered_cmp (x, y) >> 3 & 1) |