OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [loader/] [libs/] [c/] [include/] [inttypes.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Australian Public Licence B (OZPLB)
3
 *
4
 * Version 1-0
5
 *
6
 * Copyright (c) 2004 National ICT Australia
7
 *
8
 * All rights reserved.
9
 *
10
 * Developed by: Embedded, Real-time and Operating Systems Program (ERTOS)
11
 *               National ICT Australia
12
 *               http://www.ertos.nicta.com.au
13
 *
14
 * Permission is granted by National ICT Australia, free of charge, to
15
 * any person obtaining a copy of this software and any associated
16
 * documentation files (the "Software") to deal with the Software without
17
 * restriction, including (without limitation) the rights to use, copy,
18
 * modify, adapt, merge, publish, distribute, communicate to the public,
19
 * sublicense, and/or sell, lend or rent out copies of the Software, and
20
 * to permit persons to whom the Software is furnished to do so, subject
21
 * to the following conditions:
22
 *
23
 *     * Redistributions of source code must retain the above copyright
24
 *       notice, this list of conditions and the following disclaimers.
25
 *
26
 *     * Redistributions in binary form must reproduce the above
27
 *       copyright notice, this list of conditions and the following
28
 *       disclaimers in the documentation and/or other materials provided
29
 *       with the distribution.
30
 *
31
 *     * Neither the name of National ICT Australia, nor the names of its
32
 *       contributors, may be used to endorse or promote products derived
33
 *       from this Software without specific prior written permission.
34
 *
35
 * EXCEPT AS EXPRESSLY STATED IN THIS LICENCE AND TO THE FULL EXTENT
36
 * PERMITTED BY APPLICABLE LAW, THE SOFTWARE IS PROVIDED "AS-IS", AND
37
 * NATIONAL ICT AUSTRALIA AND ITS CONTRIBUTORS MAKE NO REPRESENTATIONS,
38
 * WARRANTIES OR CONDITIONS OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
39
 * BUT NOT LIMITED TO ANY REPRESENTATIONS, WARRANTIES OR CONDITIONS
40
 * REGARDING THE CONTENTS OR ACCURACY OF THE SOFTWARE, OR OF TITLE,
41
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT,
42
 * THE ABSENCE OF LATENT OR OTHER DEFECTS, OR THE PRESENCE OR ABSENCE OF
43
 * ERRORS, WHETHER OR NOT DISCOVERABLE.
44
 *
45
 * TO THE FULL EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL
46
 * NATIONAL ICT AUSTRALIA OR ITS CONTRIBUTORS BE LIABLE ON ANY LEGAL
47
 * THEORY (INCLUDING, WITHOUT LIMITATION, IN AN ACTION OF CONTRACT,
48
 * NEGLIGENCE OR OTHERWISE) FOR ANY CLAIM, LOSS, DAMAGES OR OTHER
49
 * LIABILITY, INCLUDING (WITHOUT LIMITATION) LOSS OF PRODUCTION OR
50
 * OPERATION TIME, LOSS, DAMAGE OR CORRUPTION OF DATA OR RECORDS; OR LOSS
51
 * OF ANTICIPATED SAVINGS, OPPORTUNITY, REVENUE, PROFIT OR GOODWILL, OR
52
 * OTHER ECONOMIC LOSS; OR ANY SPECIAL, INCIDENTAL, INDIRECT,
53
 * CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES, ARISING OUT OF OR IN
54
 * CONNECTION WITH THIS LICENCE, THE SOFTWARE OR THE USE OF OR OTHER
55
 * DEALINGS WITH THE SOFTWARE, EVEN IF NATIONAL ICT AUSTRALIA OR ITS
56
 * CONTRIBUTORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH CLAIM, LOSS,
57
 * DAMAGES OR OTHER LIABILITY.
58
 *
59
 * If applicable legislation implies representations, warranties, or
60
 * conditions, or imposes obligations or liability on National ICT
61
 * Australia or one of its contributors in respect of the Software that
62
 * cannot be wholly or partly excluded, restricted or modified, the
63
 * liability of National ICT Australia or the contributor is limited, to
64
 * the full extent permitted by the applicable legislation, at its
65
 * option, to:
66
 * a.  in the case of goods, any one or more of the following:
67
 * i.  the replacement of the goods or the supply of equivalent goods;
68
 * ii.  the repair of the goods;
69
 * iii. the payment of the cost of replacing the goods or of acquiring
70
 *  equivalent goods;
71
 * iv.  the payment of the cost of having the goods repaired; or
72
 * b.  in the case of services:
73
 * i.  the supplying of the services again; or
74
 * ii.  the payment of the cost of having the services supplied again.
75
 *
76
 * The construction, validity and performance of this licence is governed
77
 * by the laws in force in New South Wales, Australia.
78
 */
79
 
80
/*
81
 Authors: Ben Leslie
82
*/
83
 
84
#ifndef _INT_TYPES_
85
#define _INT_TYPES_
86
 
87
#include <stdint.h>
88
 
89
#include <arch/inttypes.h>
90
 
91
/* 7.8.1 Macros for format specifies */
92
 
93
/* 7.8.1.2 signed integers */
94
#define PRId8 __LENGTH_8_MOD "d"
95
#define PRId16 __LENGTH_16_MOD "d"
96
#define PRId32 __LENGTH_32_MOD "d"
97
#define PRId64 __LENGTH_64_MOD "d"
98
 
99
#define PRIi8 __LENGTH_8_MOD "i"
100
#define PRIi16 __LENGTH_16_MOD "i"
101
#define PRIi32 __LENGTH_32_MOD "i"
102
#define PRIi64 __LENGTH_64_MOD "i"
103
 
104
#define PRIdLEAST8 __LENGTH_LEAST8_MOD "d"
105
#define PRIdLEAST16 __LENGTH_LEAST16_MOD "d"
106
#define PRIdLEAST32 __LENGTH_LEAST32_MOD "d"
107
#define PRIdLEAST64 __LENGTH_LEAST64_MOD "d"
108
 
109
#define PRIiLEAST8 __LENGTH_LEAST8_MOD "i"
110
#define PRIiLEAST16 __LENGTH_LEAST16_MOD "i"
111
#define PRIiLEAST32 __LENGTH_LEAST32_MOD "i"
112
#define PRIiLEAST64 __LENGTH_LEAST64_MOD "i"
113
 
114
#define PRIdFAST8 __LENGTH_FAST8_MOD "d"
115
#define PRIdFAST16 __LENGTH_FAST16_MOD "d"
116
#define PRIdFAST32 __LENGTH_FAST32_MOD "d"
117
#define PRIdFAST64 __LENGTH_FAST64_MOD "d"
118
 
119
#define PRIiFAST8 __LENGTH_FAST8_MOD "i"
120
#define PRIiFAST16 __LENGTH_FAST16_MOD "i"
121
#define PRIiFAST32 __LENGTH_FAST32_MOD "i"
122
#define PRIiFAST64 __LENGTH_FAST64_MOD "i"
123
 
124
#define PRIdMAX __LENGTH_MAX_MOD "d" 
125
#define PRIiMAX __LENGTH_MAX_MOD "i"
126
 
127
#define PRIdPTR __LENGTH_PTR_MOD "d"
128
#define PRIiPTR __LENGTH_PTR_MOD "i"
129
 
130
/* 7.8 __LENGTH_8_MOD.1.3 unsigned integers */
131
 
132
#define PRIo8 __LENGTH_8_MOD "o"
133
#define PRIo16 __LENGTH_16_MOD "o"
134
#define PRIo32 __LENGTH_32_MOD "o"
135
#define PRIo64 __LENGTH_64_MOD "o"
136
 
137
#define PRIu8 __LENGTH_8_MOD "u"
138
#define PRIu16 __LENGTH_16_MOD "u"
139
#define PRIu32 __LENGTH_32_MOD "u"
140
#define PRIu64 __LENGTH_64_MOD "u"
141
 
142
#define PRIx8 __LENGTH_8_MOD "x"
143
#define PRIx16 __LENGTH_16_MOD "x"
144
#define PRIx32 __LENGTH_32_MOD "x"
145
#define PRIx64 __LENGTH_64_MOD "x"
146
 
147
#define PRIX8 __LENGTH_8_MOD "X"
148
#define PRIX16 __LENGTH_16_MOD "X"
149
#define PRIX32 __LENGTH_32_MOD "X"
150
#define PRIX64 __LENGTH_64_MOD "X"
151
 
152
#define PRIoLEAST8 __LENGTH_LEAST8_MOD "o"
153
#define PRIoLEAST16 __LENGTH_LEAST16_MOD "o"
154
#define PRIoLEAST32 __LENGTH_LEAST32_MOD "o"
155
#define PRIoLEAST64 __LENGTH_LEAST64_MOD "o"
156
 
157
#define PRIuLEAST8 __LENGTH_LEAST8_MOD "u"
158
#define PRIuLEAST16 __LENGTH_LEAST16_MOD "u"
159
#define PRIuLEAST32 __LENGTH_LEAST32_MOD "u"
160
#define PRIuLEAST64 __LENGTH_LEAST64_MOD "u"
161
 
162
#define PRIxLEAST8 __LENGTH_LEAST8_MOD "x"
163
#define PRIxLEAST16 __LENGTH_LEAST16_MOD "x"
164
#define PRIxLEAST32 __LENGTH_LEAST32_MOD "x"
165
#define PRIxLEAST64 __LENGTH_LEAST64_MOD "x"
166
 
167
#define PRIXLEAST8 __LENGTH_LEAST8_MOD "X"
168
#define PRIXLEAST16 __LENGTH_LEAST16_MOD "X"
169
#define PRIXLEAST32 __LENGTH_LEAST32_MOD "X"
170
#define PRIXLEAST64 __LENGTH_LEAST64_MOD "X"
171
 
172
#define PRIoFAST8 __LENGTH_FAST8_MOD "o"
173
#define PRIoFAST16 __LENGTH_FAST16_MOD "o"
174
#define PRIoFAST32 __LENGTH_FAST32_MOD "o"
175
#define PRIoFAST64 __LENGTH_FAST64_MOD "o"
176
 
177
#define PRIuFAST8 __LENGTH_FAST8_MOD "u"
178
#define PRIuFAST16 __LENGTH_FAST16_MOD "u"
179
#define PRIuFAST32 __LENGTH_FAST32_MOD "u"
180
#define PRIuFAST64 __LENGTH_FAST64_MOD "u"
181
 
182
#define PRIxFAST8 __LENGTH_FAST8_MOD "x"
183
#define PRIxFAST16 __LENGTH_FAST16_MOD "x"
184
#define PRIxFAST32 __LENGTH_FAST32_MOD "x"
185
#define PRIxFAST64 __LENGTH_FAST64_MOD "x"
186
 
187
#define PRIXFAST8 __LENGTH_FAST8_MOD "X"
188
#define PRIXFAST16 __LENGTH_FAST16_MOD "X"
189
#define PRIXFAST32 __LENGTH_FAST32_MOD "X"
190
#define PRIXFAST64 __LENGTH_FAST64_MOD "X"
191
 
192
#define PRIoMAX __LENGTH_MAX_MOD "o"
193
#define PRIuMAX __LENGTH_MAX_MOD "u"
194
#define PRIxMAX __LENGTH_MAX_MOD "x"
195
#define PRIXMAX __LENGTH_MAX_MOD "X"
196
 
197
#define PRIoPTR __LENGTH_PTR_MOD "o"
198
#define PRIuPTR __LENGTH_PTR_MOD "u" 
199
#define PRIxPTR __LENGTH_PTR_MOD "x"
200
#define PRIXPTR __LENGTH_PTR_MOD "X"
201
 
202
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.