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

mercurial at gmplib.org mercurial at gmplib.org
Mon Apr 11 14:30:31 CEST 2011


details:   /var/hg/gmp/rev/0c9f084c9777
changeset: 14121:0c9f084c9777
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Apr 11 14:30:21 2011 +0200
description:
Make proper PIC reference.

details:   /var/hg/gmp/rev/7fc68309cfb2
changeset: 14122:7fc68309cfb2
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Apr 11 14:30:24 2011 +0200
description:
*** empty log message ***

diffstat:

 ChangeLog                  |   4 ++++
 mpn/x86_64/invert_limb.asm |  10 +++-------
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (39 lines):

diff -r 58ab3bd9ca8d -r 7fc68309cfb2 ChangeLog
--- a/ChangeLog	Sun Apr 10 22:09:58 2011 +0200
+++ b/ChangeLog	Mon Apr 11 14:30:24 2011 +0200
@@ -1,3 +1,7 @@
+2011-04-11  Torbjorn Granlund  <tege at gmplib.org>
+
+	* mpn/x86_64/invert_limb.asm: Make proper PIC reference.
+
 2011-04-10  Niels Möller  <nisse at lysator.liu.se>
 
 	* mpn/asm-defs.m4 (define_mpn): Added invert_limb_table.
diff -r 58ab3bd9ca8d -r 7fc68309cfb2 mpn/x86_64/invert_limb.asm
--- a/mpn/x86_64/invert_limb.asm	Sun Apr 10 22:09:58 2011 +0200
+++ b/mpn/x86_64/invert_limb.asm	Mon Apr 11 14:30:24 2011 +0200
@@ -41,15 +41,12 @@
 	mov	%rdi, %rax		C			 0	 0	 0
 	shr	$55, %rax		C			 1	 1	 1
 ifdef(`PIC',`
-ifdef(`DARWIN',`
 	mov	mpn_invert_limb_table at GOTPCREL(%rip), %r8
-	add	$-512, %r8
+	movzwl	-512(%r8,%rax,2), R32(%rcx)
 ',`
-	lea	-512+mpn_invert_limb_table(%rip), %r8
-')',`
 	movabs	$-512+mpn_invert_limb_table, %r8
-')
-	movzwl	(%r8,%rax,2), R32(%rcx)	C	%rcx = v0
+	movzwl	(%r8,%rax,2), R32(%rcx)
+')					C	%rcx = v0
 
 	C v1 = (v0 << 11) - (v0*v0*d40 >> 40) - 1
 	mov	%rdi, %rsi		C			 0	 0	 0
@@ -95,5 +92,4 @@
 
 	ret
 EPILOGUE()
-
 ASM_END()


More information about the gmp-commit mailing list