Mercurial > pub > dyncall > dyncall
annotate dyncall/dyncall_call.S @ 165:572aff021627
- file name/layout cleanup, removed "-att" from x64 .S filenames, as unnecessary and also misleading
- some "I'm bored"-whitespace-cleanup
author | cslag |
---|---|
date | Thu, 05 Jan 2017 10:35:12 +0100 |
parents | 3e629dc19168 |
children | 183594497726 |
rev | line source |
---|---|
0 | 1 /* |
2 | |
3 Package: dyncall | |
4 Library: dyncall | |
5 File: dyncall/dyncall_call.S | |
6 Description: assembly call kernel, auto-selected by gcc / Plan9 build system | |
7 License: | |
8 | |
9 Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>, | |
10 Tassilo Philipp <tphilipp@potion-studios.com> | |
11 | |
12 Permission to use, copy, modify, and distribute this software for any | |
13 purpose with or without fee is hereby granted, provided that the above | |
14 copyright notice and this permission notice appear in all copies. | |
15 | |
16 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
17 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
18 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
19 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
23 | |
24 */ | |
25 | |
26 | |
27 #include "dyncall_macros.h" | |
28 | |
29 /* Plan9 */ | |
30 #if defined(DC__OS_Plan9) | |
31 # if defined(DC__Arch_Intel_x86) | |
32 # include "dyncall_call_x86_8a.s" | |
33 # else | |
34 # error Unsupported Architecture on Plan9. | |
35 # endif | |
36 #elif defined(DC__C_MSVC) | |
37 # if defined(DC__OS_Win32) | |
38 # include "dyncall_call_x86_generic_masm.asm" | |
39 # elif defined(DC__OS_Win64) | |
40 # include "dyncall_call_x64_generic_masm.asm" | |
41 # endif | |
42 #else | |
43 # if defined(DC__Arch_Intel_x86) | |
44 # include "dyncall_call_x86.S" | |
45 # elif defined(DC__Arch_AMD64) | |
165
572aff021627
- file name/layout cleanup, removed "-att" from x64 .S filenames, as unnecessary and also misleading
cslag
parents:
0
diff
changeset
|
46 # include "dyncall_call_x64.S" |
0 | 47 # elif defined(DC__Arch_ARM_ARM) |
48 # if defined(DC__ABI_ARM_HF) | |
49 # include "dyncall_call_arm32_arm_armhf.S" | |
50 # else | |
51 # include "dyncall_call_arm32_arm.S" | |
52 # endif | |
53 # elif defined(DC__Arch_ARM_THUMB) | |
54 # if defined(DC__OS_Darwin) | |
55 # include "dyncall_call_arm32_thumb_apple.s" | |
56 # else | |
57 # if defined(DC__ABI_ARM_HF) | |
58 # include "dyncall_call_arm32_thumb_armhf.S" | |
59 # else | |
60 # include "dyncall_call_arm32_thumb_gas.s" | |
61 # endif | |
62 # endif | |
63 # elif defined(DC__Arch_ARM64) | |
64 # include "dyncall_call_arm64.S" | |
65 # elif defined(DC__Arch_PPC32) | |
66 # include "dyncall_call_ppc32.S" | |
67 # elif defined(DC__Arch_PPC64) | |
68 # include "dyncall_call_ppc64.S" | |
69 # elif defined(DC__Arch_MIPS) || defined(DC__Arch_MIPS64) | |
70 # include "dyncall_call_mips_gas.S" | |
71 # elif defined(DC__Arch_Sparcv9) | |
72 # include "dyncall_call_sparc_v9.S" | |
73 # elif defined(DC__Arch_Sparc) | |
74 # include "dyncall_call_sparc.S" | |
75 # else | |
76 # error Unsupported Architecture. | |
77 # endif | |
78 #endif | |
79 |