Mercurial > pub > dyncall > dyncall
annotate portasm/portasm-ppc.S @ 663:127b569978cc default tip
- another tweak handling clang trying to be too smart (see last commit)
author | Tassilo Philipp |
---|---|
date | Sun, 24 Mar 2024 13:52:44 +0100 |
parents | 6a8aac9b2bcf |
children |
rev | line source |
---|---|
0 | 1 /* |
2 | |
3 Package: dyncall | |
4 Library: portasm | |
5 File: portasm/portasm-ppc.S | |
6 Description: Portable Assembler Macros for ppc | |
7 License: | |
8 | |
281 | 9 Copyright (c) 2011-2018 Daniel Adler <dadler@uni-goettingen.de> |
0 | 10 |
11 Permission to use, copy, modify, and distribute this software for any | |
12 purpose with or without fee is hereby granted, provided that the above | |
13 copyright notice and this permission notice appear in all copies. | |
14 | |
15 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
16 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
17 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
18 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
20 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
21 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
22 | |
23 */ | |
24 | |
25 | |
26 | |
645
6a8aac9b2bcf
- removal of `autovar` macro detection lib:
Tassilo Philipp
parents:
281
diff
changeset
|
27 #include "../dyncall/dyncall_macros.h" |
6a8aac9b2bcf
- removal of `autovar` macro detection lib:
Tassilo Philipp
parents:
281
diff
changeset
|
28 #if defined(DC__OS_Darwin) |
0 | 29 #define GLOBAL_C(X) .globl _##X |
30 #define ENTRY_C(X) _##X: | |
31 #else | |
32 #define GLOBAL_C(X) .globl X | |
33 #define ENTRY_C(X) X: | |
34 #define r0 0 | |
35 #define r1 1 | |
36 #define r2 2 | |
37 #define r3 3 | |
38 #define r4 4 | |
39 #define r5 5 | |
40 #define r6 6 | |
41 #define r7 7 | |
42 #define r8 8 | |
43 #define r9 9 | |
44 #define r10 10 | |
45 #define r11 11 | |
46 #define r12 12 | |
47 #define r13 13 | |
48 #define r14 14 | |
49 #define r15 15 | |
50 #define r16 16 | |
51 #define r17 17 | |
52 #define r18 18 | |
53 #define r19 19 | |
54 #define r20 20 | |
55 #define r21 21 | |
56 #define r22 22 | |
57 #define r23 23 | |
58 #define r24 24 | |
59 #define r25 25 | |
60 #define r26 26 | |
61 #define r27 27 | |
62 #define r28 28 | |
63 #define r29 29 | |
64 #define r30 30 | |
65 #define r31 31 | |
66 #define f0 0 | |
67 #define f1 1 | |
68 #define f2 2 | |
69 #define f3 3 | |
70 #define f4 4 | |
71 #define f5 5 | |
72 #define f6 6 | |
73 #define f7 7 | |
74 #define f8 8 | |
75 #define f9 9 | |
76 #define f10 10 | |
77 #define f11 11 | |
78 #define f12 12 | |
79 #define f13 13 | |
80 #define f14 14 | |
81 #define f15 15 | |
82 #define f16 16 | |
83 #define f17 17 | |
84 #define f18 18 | |
85 #define f19 19 | |
86 #define f20 20 | |
87 #define f21 21 | |
88 #define f22 22 | |
89 #define f23 23 | |
90 #define f24 24 | |
91 #define f25 25 | |
92 #define f26 26 | |
93 #define f27 27 | |
94 #define f28 28 | |
95 #define f29 29 | |
96 #define f30 30 | |
97 #define f31 31 | |
98 #endif | |
99 |