summaryrefslogtreecommitdiff
path: root/mpn/x86_64/lshsub_n.asm
diff options
context:
space:
mode:
Diffstat (limited to 'mpn/x86_64/lshsub_n.asm')
-rw-r--r--mpn/x86_64/lshsub_n.asm16
1 files changed, 15 insertions, 1 deletions
diff --git a/mpn/x86_64/lshsub_n.asm b/mpn/x86_64/lshsub_n.asm
index 3a42863ad..6e5816b1c 100644
--- a/mpn/x86_64/lshsub_n.asm
+++ b/mpn/x86_64/lshsub_n.asm
@@ -1,6 +1,6 @@
dnl AMD64 mpn_lshsub_n. R = 2^k(U - V).
-dnl Copyright 2006 Free Software Foundation, Inc.
+dnl Copyright 2006, 2011 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
@@ -44,10 +44,23 @@ define(`vp', `%rdx')
define(`n', `%rcx')
define(`cnt', `%r8')
+ifdef(`HOST_DOS64',`
+ define(`IFDOS', `$1')
+ define(`IFELF', `')
+',`
+ define(`IFDOS', `')
+ define(`IFELF', `$1')
+')
+
+ABI_SUPPORT(DOS64)
+ABI_SUPPORT(ELF64)
+
ASM_START()
TEXT
ALIGN(16)
PROLOGUE(mpn_lshsub_n)
+ DOS64_ENTRY(4)
+IFDOS(` mov 56(%rsp), %r8d ')
push %r12
push %r13
@@ -151,5 +164,6 @@ L(end):
pop %r13
pop %r12
+ DOS64_EXIT()
ret
EPILOGUE()