diff options
author | Richard Purdie <richard@openedhand.com> | 2006-12-20 12:07:48 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-12-20 12:07:48 +0000 |
commit | 1292db8782c761fef640b09eef22bcef505985cb (patch) | |
tree | 42cb2393e5fd1d10fb1b7a07ca28543b9852b111 /meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff | |
parent | e46b2474872492e0e92d6bb43d6d1bda33057c06 (diff) | |
download | openembedded-core-1292db8782c761fef640b09eef22bcef505985cb.tar.gz openembedded-core-1292db8782c761fef640b09eef22bcef505985cb.tar.bz2 openembedded-core-1292db8782c761fef640b09eef22bcef505985cb.tar.xz openembedded-core-1292db8782c761fef640b09eef22bcef505985cb.zip |
glibc: Update patches
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1062 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff')
-rw-r--r-- | meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff b/meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff new file mode 100644 index 000000000..1046efb2a --- /dev/null +++ b/meta/packages/glibc/glibc-2.4/powerpc-sqrt-hack.diff @@ -0,0 +1,25 @@ +diff -Nurd ../glibc-initial-2.5-r4/glibc-2.5/sysdeps/powerpc/fpu/e_sqrt.c glibc-2.5/sysdeps/powerpc/fpu/e_sqrt.c +--- ../glibc-initial-2.5-r4/glibc-2.5/sysdeps/powerpc/fpu/e_sqrt.c 2006-04-14 07:44:30.000000000 +0200 ++++ glibc-2.5/sysdeps/powerpc/fpu/e_sqrt.c 2006-12-08 12:53:32.202227000 +0100 +@@ -25,6 +25,9 @@ + #include <sysdep.h> + #include <ldsodefs.h> + ++#define __CPU_HAS_FSQRT ((GLRO(dl_hwcap) & PPC_FEATURE_64) != 0) ++ ++ + static const double almost_half = 0.5000000000000001; /* 0.5 + 2^-53 */ + static const ieee_float_shape_type a_nan = {.word = 0x7fc00000 }; + static const ieee_float_shape_type a_inf = {.word = 0x7f800000 }; +diff -Nurd ../glibc-initial-2.5-r4/glibc-2.5/sysdeps/powerpc/fpu/e_sqrtf.c glibc-2.5/sysdeps/powerpc/fpu/e_sqrtf.c +--- ../glibc-initial-2.5-r4/glibc-2.5/sysdeps/powerpc/fpu/e_sqrtf.c 2006-04-14 07:44:30.000000000 +0200 ++++ glibc-2.5/sysdeps/powerpc/fpu/e_sqrtf.c 2006-12-08 12:53:36.992227000 +0100 +@@ -25,6 +25,8 @@ + #include <sysdep.h> + #include <ldsodefs.h> + ++#define __CPU_HAS_FSQRT ((GLRO(dl_hwcap) & PPC_FEATURE_64) != 0) ++ + static const float almost_half = 0.50000006; /* 0.5 + 2^-24 */ + static const ieee_float_shape_type a_nan = {.word = 0x7fc00000 }; + static const ieee_float_shape_type a_inf = {.word = 0x7f800000 }; |