summaryrefslogtreecommitdiff
path: root/mpn/alpha
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2013-10-16 18:51:02 +0200
committerTorbjorn Granlund <tege@gmplib.org>2013-10-16 18:51:02 +0200
commit1720969d90f1a52f280a38b922190f4108fdd425 (patch)
tree79d6e5211c221717404ac6127256cd982edd85ad /mpn/alpha
parent990dfc44d2585d58d65cfd4f318734bbff55fe6f (diff)
downloadgmp-1720969d90f1a52f280a38b922190f4108fdd425.tar.gz
Use provided gp mechanisms.
Diffstat (limited to 'mpn/alpha')
-rw-r--r--mpn/alpha/divrem_2.asm7
1 files changed, 3 insertions, 4 deletions
diff --git a/mpn/alpha/divrem_2.asm b/mpn/alpha/divrem_2.asm
index b68468bca..0433de14b 100644
--- a/mpn/alpha/divrem_2.asm
+++ b/mpn/alpha/divrem_2.asm
@@ -1,6 +1,6 @@
dnl Alpha mpn_divrem_2 -- Divide an mpn number by a normalized 2-limb number.
-dnl Copyright 2007, 2008 Free Software Foundation, Inc.
+dnl Copyright 2007, 2008, 2013 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
@@ -41,8 +41,7 @@ define(`un_param', `r19')
define(`dp', `r20')
ASM_START()
-PROLOGUE(mpn_divrem_2)
- ldgp r29, 0(r27)
+PROLOGUE(mpn_divrem_2,gp)
lda r30, -80(r30)
stq r26, 0(r30)
stq r9, 8(r30)
@@ -80,7 +79,7 @@ L(L8): stq r3, 72(r30)
blt r19, L(L10)
bis r31, r12, r16
jsr r26, mpn_invert_limb
- ldgp r29, 0(r26)
+ LDGP( r29, 0(r26))
mulq r0, r12, r4 C t0 = LO(di * d1)
umulh r0, r10, r2 C s1 = HI(di * d0)
addq r4, r10, r4 C t0 += d0