Add hidden_def.
[glibc.git] / sysdeps / powerpc / sysdep.h
blobcd0485e070c89c44715f851218a8b1c15fb2b898
1 /* Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #ifdef __ASSEMBLER__
21 /* Symbolic names for the registers. The only portable way to write asm
22 code is to use number but this produces really unreadable code.
23 Therefore these symbolic names. */
25 /* Integer registers. */
26 #define r0 0
27 #define r1 1
28 #define r2 2
29 #define r3 3
30 #define r4 4
31 #define r5 5
32 #define r6 6
33 #define r7 7
34 #define r8 8
35 #define r9 9
36 #define r10 10
37 #define r11 11
38 #define r12 12
39 #define r13 13
40 #define r14 14
41 #define r15 15
42 #define r16 16
43 #define r17 17
44 #define r18 18
45 #define r19 19
46 #define r20 20
47 #define r21 21
48 #define r22 22
49 #define r23 23
50 #define r24 24
51 #define r25 25
52 #define r26 26
53 #define r27 27
54 #define r28 28
55 #define r29 29
56 #define r30 30
57 #define r31 31
59 /* Floating-point registers. */
60 #define fp0 0
61 #define fp1 1
62 #define fp2 2
63 #define fp3 3
64 #define fp4 4
65 #define fp5 5
66 #define fp6 6
67 #define fp7 7
68 #define fp8 8
69 #define fp9 9
70 #define fp10 10
71 #define fp11 11
72 #define fp12 12
73 #define fp13 13
74 #define fp14 14
75 #define fp15 15
76 #define fp16 16
77 #define fp17 17
78 #define fp18 18
79 #define fp19 19
80 #define fp20 20
81 #define fp21 21
82 #define fp22 22
83 #define fp23 23
84 #define fp24 24
85 #define fp25 25
86 #define fp26 26
87 #define fp27 27
88 #define fp28 28
89 #define fp29 29
90 #define fp30 30
91 #define fp31 31
93 /* Condition code registers. */
94 #define cr0 0
95 #define cr1 1
96 #define cr2 2
97 #define cr3 3
98 #define cr4 4
99 #define cr5 5
100 #define cr6 6
101 #define cr7 7
104 #ifdef __ELF__
106 /* This seems to always be the case on PPC. */
107 #define ALIGNARG(log2) log2
108 /* For ELF we need the `.type' directive to make shared libs work right. */
109 #define ASM_TYPE_DIRECTIVE(name,typearg) .type name,typearg;
110 #define ASM_SIZE_DIRECTIVE(name) .size name,.-name
112 #endif /* __ELF__ */
115 #endif /* __ASSEMBLER__ */