diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2011-11-29 21:59:39 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2011-11-29 21:59:39 +0100 |
commit | 23df1f61b5f28b4bf4953acd2b069d1f09d6450f (patch) | |
tree | 90c979b4081ce64d927d15f630aff84e245652ef /mpn/x86_64/invert_limb.asm | |
parent | cdaf5d1a1e737e7db82e6509571468fa660c043b (diff) | |
download | gmp-23df1f61b5f28b4bf4953acd2b069d1f09d6450f.tar.gz |
Add DOS64 ABI support to most files.
Diffstat (limited to 'mpn/x86_64/invert_limb.asm')
-rw-r--r-- | mpn/x86_64/invert_limb.asm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mpn/x86_64/invert_limb.asm b/mpn/x86_64/invert_limb.asm index 8c6aa68b6..06cf1414a 100644 --- a/mpn/x86_64/invert_limb.asm +++ b/mpn/x86_64/invert_limb.asm @@ -2,7 +2,7 @@ dnl AMD64 mpn_invert_limb -- Invert a normalized limb. dnl Contributed to the GNU project by Torbjorn Granlund and Niels Möller. -dnl Copyright 2004, 2007, 2008, 2009 Free Software Foundation, Inc. +dnl Copyright 2004, 2007, 2008, 2009, 2011 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. @@ -33,11 +33,14 @@ C VIA nano 79 157 C rax rcx rdx rdi rsi r8 +ABI_SUPPORT(DOS64) +ABI_SUPPORT(ELF64) ASM_START() TEXT ALIGN(16) PROLOGUE(mpn_invert_limb) C Kn C2 Ci + DOS64_ENTRY(1) mov %rdi, %rax C 0 0 0 shr $55, %rax C 1 1 1 ifdef(`PIC',` @@ -94,6 +97,7 @@ ifdef(`DARWIN',` adc %rdi, %rdx sub %rdx, %rax + DOS64_EXIT() ret EPILOGUE() ASM_END() |