summaryrefslogtreecommitdiff
path: root/mpn/x86_64/mod_1_2.asm
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-11-29 21:59:39 +0100
committerTorbjorn Granlund <tege@gmplib.org>2011-11-29 21:59:39 +0100
commit23df1f61b5f28b4bf4953acd2b069d1f09d6450f (patch)
tree90c979b4081ce64d927d15f630aff84e245652ef /mpn/x86_64/mod_1_2.asm
parentcdaf5d1a1e737e7db82e6509571468fa660c043b (diff)
downloadgmp-23df1f61b5f28b4bf4953acd2b069d1f09d6450f.tar.gz
Add DOS64 ABI support to most files.
Diffstat (limited to 'mpn/x86_64/mod_1_2.asm')
-rw-r--r--mpn/x86_64/mod_1_2.asm9
1 files changed, 8 insertions, 1 deletions
diff --git a/mpn/x86_64/mod_1_2.asm b/mpn/x86_64/mod_1_2.asm
index a0ecb6855..b09f24bc0 100644
--- a/mpn/x86_64/mod_1_2.asm
+++ b/mpn/x86_64/mod_1_2.asm
@@ -2,7 +2,7 @@ dnl AMD64 mpn_mod_1s_2p
dnl Contributed to the GNU project by Torbjorn Granlund.
-dnl Copyright 2009, 2010 Free Software Foundation, Inc.
+dnl Copyright 2009, 2010, 2011 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
@@ -31,10 +31,14 @@ C Intel SBR 4.5
C Intel atom 28
C VIA nano 8
+C ABI_SUPPORT(DOS64)
+C ABI_SUPPORT(ELF64)
+
ASM_START()
TEXT
ALIGN(16)
PROLOGUE(mpn_mod_1s_2p)
+ DOS64_ENTRY(4)
push %r14
test $1, R8(%rsi)
mov %rdx, %r14
@@ -145,6 +149,7 @@ L(1): xor R32(%rcx), R32(%rcx)
pop %r12
pop %r13
pop %r14
+ DOS64_EXIT()
ret
L(one):
mov (%rdi), %r8
@@ -154,6 +159,7 @@ L(one):
EPILOGUE()
PROLOGUE(mpn_mod_1s_2p_cps)
+ DOS64_ENTRY(2)
push %rbp
bsr %rsi, %rcx
push %rbx
@@ -214,5 +220,6 @@ ifdef(`SHLD_SLOW',`
pop %r12
pop %rbx
pop %rbp
+ DOS64_EXIT()
ret
EPILOGUE()