summaryrefslogtreecommitdiff
path: root/mpn
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-12-05 01:20:25 +0100
committerTorbjorn Granlund <tege@gmplib.org>2011-12-05 01:20:25 +0100
commit1d702bbd1aa9e6e1c672fac17bf83f8e08f1fd9f (patch)
treece24c2ee151e74e07599ff63c66d72083042bebe /mpn
parent6f9bb3039705f6524b5e6f46d049ee91560bb2b5 (diff)
downloadgmp-1d702bbd1aa9e6e1c672fac17bf83f8e08f1fd9f.tar.gz
Make use of generalised LEA.
Diffstat (limited to 'mpn')
-rw-r--r--mpn/x86_64/dive_1.asm4
-rw-r--r--mpn/x86_64/mode1o.asm5
2 files changed, 1 insertions, 8 deletions
diff --git a/mpn/x86_64/dive_1.asm b/mpn/x86_64/dive_1.asm
index 01acc5bf2..ea7c17e40 100644
--- a/mpn/x86_64/dive_1.asm
+++ b/mpn/x86_64/dive_1.asm
@@ -60,11 +60,7 @@ L(odd): mov %rax, %rbx
shr R32(%rax)
and $127, R32(%rax) C d/2, 7 bits
-ifdef(`PIC',`
LEA( binvert_limb_table, %rdx)
-',`
- movabs $binvert_limb_table, %rdx
-')
movzbl (%rdx,%rax), R32(%rax) C inv 8 bits
diff --git a/mpn/x86_64/mode1o.asm b/mpn/x86_64/mode1o.asm
index 66fa20a43..9467901eb 100644
--- a/mpn/x86_64/mode1o.asm
+++ b/mpn/x86_64/mode1o.asm
@@ -84,11 +84,8 @@ L(ent):
mov %rdx, %r8 C d
shr R32(%rdx) C d/2
-ifdef(`PIC',`
+
LEA( binvert_limb_table, %r9)
-',`
- movabs $binvert_limb_table, %r9
-')
and $127, R32(%rdx)
mov %rcx, %r10 C initial carry