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/aorscnd_n.asm | |
parent | cdaf5d1a1e737e7db82e6509571468fa660c043b (diff) | |
download | gmp-23df1f61b5f28b4bf4953acd2b069d1f09d6450f.tar.gz |
Add DOS64 ABI support to most files.
Diffstat (limited to 'mpn/x86_64/aorscnd_n.asm')
-rw-r--r-- | mpn/x86_64/aorscnd_n.asm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mpn/x86_64/aorscnd_n.asm b/mpn/x86_64/aorscnd_n.asm index 19ea42f2a..d22a2a218 100644 --- a/mpn/x86_64/aorscnd_n.asm +++ b/mpn/x86_64/aorscnd_n.asm @@ -59,10 +59,23 @@ ifdef(`OPERATION_subcnd_n', ` MULFUNC_PROLOGUE(mpn_addcnd_n mpn_subcnd_n) +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(func) + DOS64_ENTRY(4) +IFDOS(` mov 56(%rsp), %r8 ') push %rbx push %rbp push %r12 @@ -160,5 +173,6 @@ L(end): neg R32(%rax) pop %r12 pop %rbp pop %rbx + DOS64_EXIT() ret EPILOGUE() |