[Gmp-commit] /var/hg/gmp: 3 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Sat Mar 9 03:22:16 CET 2013


details:   /var/hg/gmp/rev/60fc43e856e2
changeset: 15539:60fc43e856e2
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Mar 09 00:33:59 2013 +0100
description:
Fix a typo

details:   /var/hg/gmp/rev/715251ed7bff
changeset: 15540:715251ed7bff
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Mar 09 00:34:39 2013 +0100
description:
Fix a comment typo.

details:   /var/hg/gmp/rev/f972719a3edc
changeset: 15541:f972719a3edc
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Mar 09 00:35:45 2013 +0100
description:
Use g5 instead of g4.

diffstat:

 mpn/sparc64/ultrasparc1234/add_n.asm     |  78 ++++++++++++++++----------------
 mpn/sparc64/ultrasparc1234/sub_n.asm     |  54 +++++++++++-----------
 mpn/sparc64/ultrasparct3/aormul_2.asm    |   9 ++-
 mpn/x86_64/haswell/mulx/adx/addmul_1.asm |   2 +-
 4 files changed, 72 insertions(+), 71 deletions(-)

diffs (truncated from 369 to 300 lines):

diff -r 1f3faeb9f052 -r f972719a3edc mpn/sparc64/ultrasparc1234/add_n.asm
--- a/mpn/sparc64/ultrasparc1234/add_n.asm	Fri Mar 08 00:05:18 2013 +0100
+++ b/mpn/sparc64/ultrasparc1234/add_n.asm	Sat Mar 09 00:35:45 2013 +0100
@@ -32,19 +32,19 @@
 C Therefore, it seems futile to try to optimize this any further...
 
 C INPUT PARAMETERS
-define(`rp',`%i0')
-define(`up',`%i1')
-define(`vp',`%i2')
-define(`n',`%i3')
+define(`rp', `%i0')
+define(`up', `%i1')
+define(`vp', `%i2')
+define(`n',  `%i3')
 
-define(`u0',`%l0')
-define(`u1',`%l2')
-define(`u2',`%l4')
-define(`u3',`%l6')
-define(`v0',`%l1')
-define(`v1',`%l3')
-define(`v2',`%l5')
-define(`v3',`%l7')
+define(`u0', `%l0')
+define(`u1', `%l2')
+define(`u2', `%l4')
+define(`u3', `%l6')
+define(`v0', `%l1')
+define(`v1', `%l3')
+define(`v2', `%l5')
+define(`v3', `%l7')
 
 define(`cy',`%i4')
 
@@ -84,7 +84,7 @@
 	ldx	[vp-8],v3
 	subcc	n,8,n
 	add	u0,v0,%g1	C main add
-	add	%g1,cy,%g4	C carry add
+	add	%g1,cy,%g5	C carry add
 	or	u0,v0,%g2
 	bl,pn	%xcc,.Lend4567
 	fanop
@@ -92,7 +92,7 @@
 
 	.align	16
 C START MAIN LOOP
-.Loop:	andn	%g2,%g4,%g2
+.Loop:	andn	%g2,%g5,%g2
 	and	u0,v0,%g3
 	ldx	[up+0],u0
 	fanop
@@ -104,15 +104,15 @@
 C --
 	srlx	%g2,63,cy
 	add	u1,v1,%g1
-	stx	%g4,[rp+0]
+	stx	%g5,[rp+0]
 	fanop
 C --
-	add	%g1,cy,%g4
+	add	%g1,cy,%g5
 	or	u1,v1,%g2
 	fmnop
 	fanop
 C --
-	andn	%g2,%g4,%g2
+	andn	%g2,%g5,%g2
 	and	u1,v1,%g3
 	ldx	[up-24],u1
 	fanop
@@ -124,15 +124,15 @@
 C --
 	srlx	%g2,63,cy
 	add	u2,v2,%g1
-	stx	%g4,[rp+8]
+	stx	%g5,[rp+8]
 	fanop
 C --
-	add	%g1,cy,%g4
+	add	%g1,cy,%g5
 	or	u2,v2,%g2
 	fmnop
 	fanop
 C --
-	andn	%g2,%g4,%g2
+	andn	%g2,%g5,%g2
 	and	u2,v2,%g3
 	ldx	[up-16],u2
 	fanop
@@ -144,15 +144,15 @@
 C --
 	srlx	%g2,63,cy
 	add	u3,v3,%g1
-	stx	%g4,[rp-16]
+	stx	%g5,[rp-16]
 	fanop
 C --
-	add	%g1,cy,%g4
+	add	%g1,cy,%g5
 	or	u3,v3,%g2
 	fmnop
 	fanop
 C --
-	andn	%g2,%g4,%g2
+	andn	%g2,%g5,%g2
 	and	u3,v3,%g3
 	ldx	[up-8],u3
 	fanop
@@ -164,45 +164,45 @@
 C --
 	srlx	%g2,63,cy
 	add	u0,v0,%g1
-	stx	%g4,[rp-8]
+	stx	%g5,[rp-8]
 	fanop
 C --
-	add	%g1,cy,%g4
+	add	%g1,cy,%g5
 	or	u0,v0,%g2
 	bge,pt	%xcc,.Loop
 	fanop
 C END MAIN LOOP
 .Lend4567:
-	andn	%g2,%g4,%g2
+	andn	%g2,%g5,%g2
 	and	u0,v0,%g3
 	or	%g3,%g2,%g2
 	srlx	%g2,63,cy
 	add	u1,v1,%g1
-	stx	%g4,[rp+0]
-	add	%g1,cy,%g4
+	stx	%g5,[rp+0]
+	add	%g1,cy,%g5
 	or	u1,v1,%g2
-	andn	%g2,%g4,%g2
+	andn	%g2,%g5,%g2
 	and	u1,v1,%g3
 	or	%g3,%g2,%g2
 	srlx	%g2,63,cy
 	add	u2,v2,%g1
-	stx	%g4,[rp+8]
-	add	%g1,cy,%g4
+	stx	%g5,[rp+8]
+	add	%g1,cy,%g5
 	or	u2,v2,%g2
-	andn	%g2,%g4,%g2
+	andn	%g2,%g5,%g2
 	and	u2,v2,%g3
 	or	%g3,%g2,%g2
 	add	rp,32,rp
 	srlx	%g2,63,cy
 	add	u3,v3,%g1
-	stx	%g4,[rp-16]
-	add	%g1,cy,%g4
+	stx	%g5,[rp-16]
+	add	%g1,cy,%g5
 	or	u3,v3,%g2
-	andn	%g2,%g4,%g2
+	andn	%g2,%g5,%g2
 	and	u3,v3,%g3
 	or	%g3,%g2,%g2
 	srlx	%g2,63,cy
-	stx	%g4,[rp-8]
+	stx	%g5,[rp-8]
 
 	addcc	n,4,n
 	bz,pn	%xcc,.Lret
@@ -216,10 +216,10 @@
 	subcc	n,1,n
 	add	u0,v0,%g1
 	or	u0,v0,%g2
-	add	%g1,cy,%g4
+	add	%g1,cy,%g5
 	and	u0,v0,%g3
-	andn	%g2,%g4,%g2
-	stx	%g4,[rp-8]
+	andn	%g2,%g5,%g2
+	stx	%g5,[rp-8]
 	or	%g3,%g2,%g2
 	bnz,pt	%xcc,.Loop0
 	srlx	%g2,63,cy
diff -r 1f3faeb9f052 -r f972719a3edc mpn/sparc64/ultrasparc1234/sub_n.asm
--- a/mpn/sparc64/ultrasparc1234/sub_n.asm	Fri Mar 08 00:05:18 2013 +0100
+++ b/mpn/sparc64/ultrasparc1234/sub_n.asm	Sat Mar 09 00:35:45 2013 +0100
@@ -84,7 +84,7 @@
 	ldx	[vp-8],v3
 	subcc	n,8,n
 	sub	u0,v0,%g1	C main sub
-	sub	%g1,cy,%g4	C carry sub
+	sub	%g1,cy,%g5	C carry sub
 	orn	u0,v0,%g2
 	bl,pn	%xcc,.Lend4567
 	fanop
@@ -92,7 +92,7 @@
 
 	.align	16
 C START MAIN LOOP
-.Loop:	orn	%g4,%g2,%g2
+.Loop:	orn	%g5,%g2,%g2
 	andn	u0,v0,%g3
 	ldx	[up+0],u0
 	fanop
@@ -104,15 +104,15 @@
 C --
 	srlx	%g2,63,cy
 	sub	u1,v1,%g1
-	stx	%g4,[rp+0]
+	stx	%g5,[rp+0]
 	fanop
 C --
-	sub	%g1,cy,%g4
+	sub	%g1,cy,%g5
 	orn	u1,v1,%g2
 	fmnop
 	fanop
 C --
-	orn	%g4,%g2,%g2
+	orn	%g5,%g2,%g2
 	andn	u1,v1,%g3
 	ldx	[up-24],u1
 	fanop
@@ -124,15 +124,15 @@
 C --
 	srlx	%g2,63,cy
 	sub	u2,v2,%g1
-	stx	%g4,[rp+8]
+	stx	%g5,[rp+8]
 	fanop
 C --
-	sub	%g1,cy,%g4
+	sub	%g1,cy,%g5
 	orn	u2,v2,%g2
 	fmnop
 	fanop
 C --
-	orn	%g4,%g2,%g2
+	orn	%g5,%g2,%g2
 	andn	u2,v2,%g3
 	ldx	[up-16],u2
 	fanop
@@ -144,15 +144,15 @@
 C --
 	srlx	%g2,63,cy
 	sub	u3,v3,%g1
-	stx	%g4,[rp-16]
+	stx	%g5,[rp-16]
 	fanop
 C --
-	sub	%g1,cy,%g4
+	sub	%g1,cy,%g5
 	orn	u3,v3,%g2
 	fmnop
 	fanop
 C --
-	orn	%g4,%g2,%g2
+	orn	%g5,%g2,%g2
 	andn	u3,v3,%g3
 	ldx	[up-8],u3
 	fanop
@@ -164,45 +164,45 @@
 C --
 	srlx	%g2,63,cy
 	sub	u0,v0,%g1
-	stx	%g4,[rp-8]
+	stx	%g5,[rp-8]
 	fanop
 C --
-	sub	%g1,cy,%g4
+	sub	%g1,cy,%g5
 	orn	u0,v0,%g2
 	bge,pt	%xcc,.Loop
 	fanop
 C END MAIN LOOP
 .Lend4567:
-	orn	%g4,%g2,%g2
+	orn	%g5,%g2,%g2
 	andn	u0,v0,%g3
 	andn	%g2,%g3,%g2
 	srlx	%g2,63,cy
 	sub	u1,v1,%g1
-	stx	%g4,[rp+0]
-	sub	%g1,cy,%g4
+	stx	%g5,[rp+0]
+	sub	%g1,cy,%g5
 	orn	u1,v1,%g2
-	orn	%g4,%g2,%g2
+	orn	%g5,%g2,%g2
 	andn	u1,v1,%g3
 	andn	%g2,%g3,%g2
 	srlx	%g2,63,cy
 	sub	u2,v2,%g1
-	stx	%g4,[rp+8]
-	sub	%g1,cy,%g4
+	stx	%g5,[rp+8]
+	sub	%g1,cy,%g5
 	orn	u2,v2,%g2
-	orn	%g4,%g2,%g2
+	orn	%g5,%g2,%g2


More information about the gmp-commit mailing list