summaryrefslogtreecommitdiff
path: root/mpn/x86_64/lshiftc.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/lshiftc.asm
parentcdaf5d1a1e737e7db82e6509571468fa660c043b (diff)
downloadgmp-23df1f61b5f28b4bf4953acd2b069d1f09d6450f.tar.gz
Add DOS64 ABI support to most files.
Diffstat (limited to 'mpn/x86_64/lshiftc.asm')
-rw-r--r--mpn/x86_64/lshiftc.asm7
1 files changed, 6 insertions, 1 deletions
diff --git a/mpn/x86_64/lshiftc.asm b/mpn/x86_64/lshiftc.asm
index 93bb614d3..b4124b037 100644
--- a/mpn/x86_64/lshiftc.asm
+++ b/mpn/x86_64/lshiftc.asm
@@ -1,6 +1,6 @@
dnl AMD64 mpn_lshiftc -- mpn left shift with complement.
-dnl Copyright 2003, 2005, 2006, 2009 Free Software Foundation, Inc.
+dnl Copyright 2003, 2005, 2006, 2009, 2011 Free Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
@@ -36,10 +36,14 @@ define(`up', `%rsi')
define(`n', `%rdx')
define(`cnt', `%rcx')
+ABI_SUPPORT(DOS64)
+ABI_SUPPORT(ELF64)
+
ASM_START()
TEXT
ALIGN(32)
PROLOGUE(mpn_lshiftc)
+ DOS64_ENTRY(4)
neg R32(%rcx) C put rsh count in cl
mov -8(up,n,8), %rax
shr R8(%rcx), %rax C function return value
@@ -162,5 +166,6 @@ L(ast): mov (up), %r10
shl R8(%rcx), %r10
not %r10
mov %r10, (rp)
+ DOS64_EXIT()
ret
EPILOGUE()