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/tabselect.asm | |
parent | cdaf5d1a1e737e7db82e6509571468fa660c043b (diff) | |
download | gmp-23df1f61b5f28b4bf4953acd2b069d1f09d6450f.tar.gz |
Add DOS64 ABI support to most files.
Diffstat (limited to 'mpn/x86_64/tabselect.asm')
-rw-r--r-- | mpn/x86_64/tabselect.asm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mpn/x86_64/tabselect.asm b/mpn/x86_64/tabselect.asm index 2611b3212..a6699a9a4 100644 --- a/mpn/x86_64/tabselect.asm +++ b/mpn/x86_64/tabselect.asm @@ -50,10 +50,23 @@ define(`maskn', `%r12') C rax rbx rcx rdx rdi rsi rbp (rsp) r8 r9 r10 r11 r12 r13 r14 r15 C nents n rp tab which +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_tabselect) + DOS64_ENTRY(4) +IFDOS(` mov 56(%rsp), %r8d ') push %rbx push %rbp push %r12 @@ -105,5 +118,6 @@ L(outer_end): pop %r12 pop %rbp pop %rbx + DOS64_EXIT() ret EPILOGUE() |