uClibc-0.9.30.1-c99-ldbl-math.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Index: uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/wordsize.h
  2. ===================================================================
  3. --- uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/wordsize.h (revision 25503)
  4. +++ uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/wordsize.h (working copy)
  5. @@ -14,6 +14,6 @@
  6. to the double functions. */
  7. # define __LONG_DOUBLE_MATH_OPTIONAL 1
  8. # ifndef __LONG_DOUBLE_128__
  9. -# undef __UCLIBC_HAS_LONG_DOUBLE_MATH__
  10. +# define __NO_LONG_DOUBLE_MATH 1
  11. # endif
  12. #endif
  13. Index: uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathdef.h
  14. ===================================================================
  15. --- uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathdef.h (revision 25503)
  16. +++ uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathdef.h (working copy)
  17. @@ -70,6 +70,8 @@ typedef double double_t;
  18. /* Signal that we do not really have a `long double'. The disables the
  19. declaration of all the `long double' function variants. */
  20. # if __WORDSIZE == 32
  21. -# undef __UCLIBC_HAS_LONG_DOUBLE_MATH__
  22. +# define __NO_LONG_DOUBLE_MATH 1
  23. +# elif !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
  24. +# define __NO_LONG_DOUBLE_MATH 1
  25. # endif /* __WORDSIZE == 32 */
  26. #endif /* __UCLIBC_HAS_LONG_DOUBLE_MATH__ */
  27. Index: uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathinline.h
  28. ===================================================================
  29. --- uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathinline.h (revision 25503)
  30. +++ uClibc-0.9.30.1/libc/sysdeps/linux/powerpc/bits/mathinline.h (working copy)
  31. @@ -107,6 +107,14 @@ __NTH (lrintf (float __x))
  32. }
  33. # endif
  34. +/* __MATH_INLINE int
  35. +__NTH (__finite (double __x))
  36. +{
  37. + return (__extension__
  38. + (((union { double __d; int __i[2]; }) { __d: __x}.__i[1]
  39. + & 0x7fffffff) - 0x7ff00000) >> 31);
  40. +}
  41. +*/
  42. __MATH_INLINE double fdim (double __x, double __y) __THROW;
  43. __MATH_INLINE double
  44. __NTH (fdim (double __x, double __y))