1 |
gbeauche |
1.2 |
#if (defined(__APPLE__) && defined(__MACH__)) |
2 |
gbeauche |
1.3 |
#define C_SYMBOL_NAME(NAME) _ ## NAME |
3 |
|
|
#define ASM_MACRO_END .endmacro |
4 |
|
|
#endif |
5 |
|
|
|
6 |
|
|
/* Defaults for GNU assembler */ |
7 |
|
|
#ifndef ASM_MACRO_START |
8 |
|
|
#define ASM_MACRO_START .macro |
9 |
|
|
#endif |
10 |
|
|
#ifndef ASM_MACRO_END |
11 |
|
|
#define ASM_MACRO_END .endm |
12 |
gbeauche |
1.2 |
#endif |
13 |
|
|
#ifndef C_SYMBOL_NAME |
14 |
gbeauche |
1.3 |
#define C_SYMBOL_NAME(NAME) NAME |
15 |
gbeauche |
1.2 |
#endif |
16 |
|
|
#ifndef ASM_GLOBAL_DIRECTIVE |
17 |
gbeauche |
1.3 |
#define ASM_GLOBAL_DIRECTIVE .globl |
18 |
gbeauche |
1.2 |
#endif |
19 |
|
|
|
20 |
cebix |
1.1 |
/* Register names */ |
21 |
gbeauche |
1.2 |
#if defined(__linux__) |
22 |
cebix |
1.1 |
#define r0 0 |
23 |
|
|
#define r1 1 |
24 |
|
|
#define r2 2 |
25 |
|
|
#define r3 3 |
26 |
|
|
#define r4 4 |
27 |
|
|
#define r5 5 |
28 |
|
|
#define r6 6 |
29 |
|
|
#define r7 7 |
30 |
|
|
#define r8 8 |
31 |
|
|
#define r9 9 |
32 |
|
|
#define r10 10 |
33 |
|
|
#define r11 11 |
34 |
|
|
#define r12 12 |
35 |
|
|
#define r13 13 |
36 |
|
|
#define r14 14 |
37 |
|
|
#define r15 15 |
38 |
|
|
#define r16 16 |
39 |
|
|
#define r17 17 |
40 |
|
|
#define r18 18 |
41 |
|
|
#define r19 19 |
42 |
|
|
#define r20 20 |
43 |
|
|
#define r21 21 |
44 |
|
|
#define r22 22 |
45 |
|
|
#define r23 23 |
46 |
|
|
#define r24 24 |
47 |
|
|
#define r25 25 |
48 |
|
|
#define r26 26 |
49 |
|
|
#define r27 27 |
50 |
|
|
#define r28 28 |
51 |
|
|
#define r29 29 |
52 |
|
|
#define r30 30 |
53 |
|
|
#define r31 31 |
54 |
gbeauche |
1.2 |
#endif |
55 |
cebix |
1.1 |
|
56 |
gbeauche |
1.2 |
#if defined(__linux__) |
57 |
cebix |
1.1 |
#define f0 0 |
58 |
|
|
#define f1 1 |
59 |
|
|
#define f2 2 |
60 |
|
|
#define f3 3 |
61 |
|
|
#define f4 4 |
62 |
|
|
#define f5 5 |
63 |
|
|
#define f6 6 |
64 |
|
|
#define f7 7 |
65 |
|
|
#define f8 8 |
66 |
|
|
#define f9 9 |
67 |
|
|
#define f10 10 |
68 |
|
|
#define f11 11 |
69 |
|
|
#define f12 12 |
70 |
|
|
#define f13 13 |
71 |
|
|
#define f14 14 |
72 |
|
|
#define f15 15 |
73 |
|
|
#define f16 16 |
74 |
|
|
#define f17 17 |
75 |
|
|
#define f18 18 |
76 |
|
|
#define f19 19 |
77 |
|
|
#define f20 20 |
78 |
|
|
#define f21 21 |
79 |
|
|
#define f22 22 |
80 |
|
|
#define f23 23 |
81 |
|
|
#define f24 24 |
82 |
|
|
#define f25 25 |
83 |
|
|
#define f26 26 |
84 |
|
|
#define f27 27 |
85 |
|
|
#define f28 28 |
86 |
|
|
#define f29 29 |
87 |
|
|
#define f30 30 |
88 |
|
|
#define f31 31 |
89 |
gbeauche |
1.2 |
#endif |