[Gmp-commit] /var/hg/gmp: Make powerpc add_sssaaaa work for 32-bit case, and ...

mercurial at gmplib.org mercurial at gmplib.org
Tue Mar 22 14:51:47 CET 2011


details:   /var/hg/gmp/rev/07fda551b831
changeset: 14093:07fda551b831
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Mar 22 14:51:38 2011 +0100
description:
Make powerpc add_sssaaaa work for 32-bit case, and use less strict constraints.

diffstat:

 mpn/generic/div_qr_2.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r 4d2e8ab2a4a1 -r 07fda551b831 mpn/generic/div_qr_2.c
--- a/mpn/generic/div_qr_2.c	Tue Mar 22 07:19:49 2011 +0100
+++ b/mpn/generic/div_qr_2.c	Tue Mar 22 14:51:38 2011 +0100
@@ -76,14 +76,11 @@
 	     "%1" ((UDItype)(a)), "g" ((UDItype)(b)))
 #endif
 
-/* NOTE: Slightly different from Torbjörn's version. */
 #if HAVE_HOST_CPU_FAMILY_powerpc
 #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0)				\
   __asm__ ("add%I7c\t%2,%6,%7\n\tadde\t%1,%4,%5\n\taddze\t%0,%0"	\
 	   : "=r" (s2), "=&r" (s1), "=&r" (s0)				\
-	   : "0"  ((UDItype)(s2)),					\
-	     "r"  ((UDItype)(a1)), "r" ((UDItype)(b1)),			\
-	     "%r" ((UDItype)(a0)), "rI" ((UDItype)(b0)))
+	   : "r"  (s2), "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0))
 #endif
 #endif /* __GNUC__ */
 


More information about the gmp-commit mailing list