This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED] PowerPC: Remove unneeded copysign[f] macros
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Thu, 22 May 2014 18:07:01 -0300
- Subject: [COMMITTED] PowerPC: Remove unneeded copysign[f] macros
- Authentication-results: sourceware.org; auth=none
Following Andreas Schwab suggestion, I just pushed the patch to remove the
copysign/copysignf macro optimization, since they are already covered in generic version.
--
2014-05-22 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
* sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
macro.
[copysignf]: Likewise.
---
diff --git a/sysdeps/powerpc/fpu/math_private.h b/sysdeps/powerpc/fpu/math_private.h
index 1ec4881..b664be3 100644
--- a/sysdeps/powerpc/fpu/math_private.h
+++ b/sysdeps/powerpc/fpu/math_private.h
@@ -151,31 +151,4 @@ __ieee754_sqrtf (float __x)
#endif /* defined _ARCH_PWR5X */
-
-#if defined _ARCH_PWR6
-
-# ifndef __copysign
-# define __copysign(x, y) \
- ({ double __z; \
- __asm __volatile ( \
- " fcpsgn %0,%1,%2\n" \
- : "=f" (__z) \
- : "f" (y), "f" (x)); \
- __z; })
-# endif
-# ifndef __copysignf
-# define __copysignf(x, y) \
- ({ float __z; \
- float __x = x; \
- float __y = y; \
- __asm __volatile ( \
- " fcpsgn %0,%1,%2\n" \
- " frsp %0,%0\n" \
- : "=f" (__z) \
- : "f" (__y), "f" (__x));\
- __z; })
-# endif
-
-#endif /* defined _ARCH_PWR6 */
-
#endif /* _PPC_MATH_PRIVATE_H_ */