0014-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 133870f12ba36686dd8df1311fac32a4c5b28579 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Wed, 18 Mar 2015 00:24:46 +0000
  4. Subject: [PATCH] __ieee754_sqrt{,f} are now inline functions and call out
  5. __slow versions
  6. Upstream-Status: Pending
  7. Signed-off-by: chunrong guo <B40290@freescale.com>
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c | 6 +++---
  11. sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c | 4 ++--
  12. 2 files changed, 5 insertions(+), 5 deletions(-)
  13. diff --git a/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c b/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c
  14. index 1c34244bd8..7038a70b47 100644
  15. --- a/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c
  16. +++ b/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrt.c
  17. @@ -41,10 +41,10 @@ static const float half = 0.5;
  18. #ifdef __STDC__
  19. double
  20. -__ieee754_sqrt (double b)
  21. +__slow_ieee754_sqrt (double b)
  22. #else
  23. double
  24. -__ieee754_sqrt (b)
  25. +__slow_ieee754_sqrt (b)
  26. double b;
  27. #endif
  28. {
  29. @@ -83,7 +83,7 @@ __ieee754_sqrt (b)
  30. /* Handle small numbers by scaling. */
  31. if (__builtin_expect ((u.parts.msw & 0x7ff00000) <= 0x02000000, 0))
  32. - return __ieee754_sqrt (b * two108) * twom54;
  33. + return __slow_ieee754_sqrt (b * two108) * twom54;
  34. #define FMADD(a_, c_, b_) \
  35. ({ double __r; \
  36. diff --git a/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c b/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c
  37. index 812653558f..10de1f0cc3 100644
  38. --- a/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c
  39. +++ b/sysdeps/powerpc/powerpc32/e6500/fpu/e_sqrtf.c
  40. @@ -39,10 +39,10 @@ static const float threehalf = 1.5;
  41. #ifdef __STDC__
  42. float
  43. -__ieee754_sqrtf (float b)
  44. +__slow_ieee754_sqrtf (float b)
  45. #else
  46. float
  47. -__ieee754_sqrtf (b)
  48. +__slow_ieee754_sqrtf (b)
  49. float b;
  50. #endif
  51. {