source: ssp_qb_r5f100le_cs/trunk/arch/gcc/tool_stddef.h@ 93

Last change on this file since 93 was 93, checked in by nmir-saito, 8 years ago

add Combined package of SSP kernel for QB-R5F100LE-TB(RL78 processor)

File size: 6.4 KB
Line 
1/*
2 * TOPPERS Software
3 * Toyohashi Open Platform for Embedded Real-Time Systems
4 *
5 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
6 * Toyohashi Univ. of Technology, JAPAN
7 * Copyright (C) 2004-2008 by Embedded and Real-Time Systems Laboratory
8 * Graduate School of Information Science, Nagoya Univ., JAPAN
9 *
10 * ã‹L’˜ìŒ ŽÒ‚́CˆÈ‰º‚Ì(1)`(4)‚ÌðŒ‚ð–ž‚½‚·ê‡‚ÉŒÀ‚èC–{ƒ\ƒtƒgƒEƒF
11 * ƒAi–{ƒ\ƒtƒgƒEƒFƒA‚ð‰ü•Ï‚µ‚½‚à‚Ì‚ðŠÜ‚ށDˆÈ‰º“¯‚¶j‚ðŽg—pE•¡»E‰ü
12 * •ÏEÄ”z•ziˆÈ‰ºC—˜—p‚ƌĂԁj‚·‚邱‚Ƃ𖳏ž‚Å‹–‘ø‚·‚éD
13 * (1) –{ƒ\ƒtƒgƒEƒFƒA‚ðƒ\[ƒXƒR[ƒh‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́Cã‹L‚Ì’˜ì
14 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’肪C‚»‚Ì‚Ü‚Ü‚ÌŒ`‚Ń\[
15 * ƒXƒR[ƒh’†‚ÉŠÜ‚Ü‚ê‚Ä‚¢‚邱‚ƁD
16 * (2) –{ƒ\ƒtƒgƒEƒFƒA‚ðCƒ‰ƒCƒuƒ‰ƒŠŒ`Ž®‚ȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
17 * —p‚Å‚«‚éŒ`‚ōĔz•z‚·‚éê‡‚ɂ́CÄ”z•z‚É”º‚¤ƒhƒLƒ…
18ƒƒ“ƒgi—˜—p
19 * ŽÒƒ}ƒjƒ…
20ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L
21 * ‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
22 * (3) –{ƒ\ƒtƒgƒEƒFƒA‚ðC‹@Ší‚É‘g‚ݍž‚ނȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
23 * —p‚Å‚«‚È‚¢Œ`‚ōĔz•z‚·‚éê‡‚ɂ́CŽŸ‚Ì‚¢‚¸‚ê‚©‚ÌðŒ‚ð–ž‚½‚·‚±
24 * ‚ƁD
25 * (a) Ä”z•z‚É”º‚¤ƒhƒLƒ…
26ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
27ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜
28 * ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
29 * (b) Ä”z•z‚ÌŒ`‘Ô‚ðC•Ê‚É’è‚ß‚é•û–@‚É‚æ‚Á‚āCTOPPERSƒvƒƒWƒFƒNƒg‚É
30 * •ñ‚·‚邱‚ƁD
31 * (4) –{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚é‚¢‚©‚Ȃ鑹
32 * ŠQ‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð–Ɛӂ·‚邱‚ƁD
33 * ‚Ü‚½C–{ƒ\ƒtƒgƒEƒFƒA‚̃†[ƒU‚Ü‚½‚̓Gƒ“ƒhƒ†[ƒU‚©‚ç‚Ì‚¢‚©‚Ȃ闝
34 * —R‚ÉŠî‚­¿‹‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð
35 * –Ɛӂ·‚邱‚ƁD
36 *
37 * –{ƒ\ƒtƒgƒEƒFƒA‚́C–³•ÛØ‚Å’ñ‹Ÿ‚³‚ê‚Ä‚¢‚é‚à‚Ì‚Å‚ ‚éDã‹L’˜ìŒ ŽÒ‚¨
38 * ‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚́C–{ƒ\ƒtƒgƒEƒFƒA‚ÉŠÖ‚µ‚āC“Á’è‚ÌŽg—p–Ú“I
39 * ‚ɑ΂·‚é“K‡«‚àŠÜ‚߂āC‚¢‚©‚È‚é•ÛØ‚às‚í‚È‚¢D‚Ü‚½C–{ƒ\ƒtƒgƒEƒF
40 * ƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚½‚¢‚©‚Ȃ鑹ŠQ‚ÉŠÖ‚µ‚Ä‚àC‚»
41 * ‚̐ӔC‚𕉂í‚È‚¢D
42 *
43 * @(#) $Id: tool_stddef.h 819 2008-03-18 12:58:50Z hiro $
44 */
45
46/*
47 * t_stddef.h‚ÌŠJ”­ŠÂ‹«ˆË‘¶•”iGCC—pj
48 */
49
50#ifndef TOPPERS_TOOL_STDDEF_H
51#define TOPPERS_TOOL_STDDEF_H
52
53/*
54 * ƒRƒ“ƒpƒCƒ‰‚ÌŠg’£‹@”\‚Ì‚½‚߂̃}ƒNƒ’è‹`
55 */
56#ifndef __cplusplus /* C++‚É‚Íinline ‚ª‚ ‚é */
57#if __STDC_VERSION__ < 199901L /* C99‚É‚Íinline ‚ª‚ ‚é */
58#define inline __inline__ /* ƒCƒ“ƒ‰ƒCƒ“ŠÖ” */
59#endif /* __STDC_VERSION__ < 199901L */
60#endif /* __cplusplus */
61
62#define Inline static __inline__ /* ƒCƒ“ƒ‰ƒCƒ“ŠÖ” */
63
64#ifndef __cplusplus /* C++‚É‚Íasm‚ª‚ ‚é */
65#define asm __asm__ /* ƒCƒ“ƒ‰ƒCƒ“ƒAƒZƒ“ƒuƒ‰ */
66#endif /* __cplusplus */
67
68#define Asm __asm__ volatile /* ƒCƒ“ƒ‰ƒCƒ“ƒAƒZƒ“ƒuƒ‰iÅ“K‰»—}Ž~j*/
69
70#define NoReturn __attribute__((__noreturn__))
71 /* ƒŠƒ^[ƒ“‚µ‚È‚¢ŠÖ” */
72
73/*
74 * ŠJ”­ŠÂ‹«‚Ì•W€ƒCƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹‚Ì—˜—p
75 *
76 * NULL‚Ì’è‹`‚ðstddef.h‚©‚çCINT_MAXCINT_MINCUINT_MAXCLONG_MAXC
77 * LONG_MINCULONG_MAXCCHAR_BIT‚Ì’è‹`‚ðlimits.h‚©‚çŽæ‚荞‚ށD
78 *
79 * C++/EC++‚ł́C•W€Žd—lã‚Í‚±‚ê‚ç‚̃Cƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹‚ª—pˆÓ‚³‚ê‚Ä
80 * ‚¢‚é‚Æ‚ÍŒÀ‚ç‚È‚¢‚Ì‚Å’ˆÓ‚ª•K—v‚Å‚ ‚éi‚Ù‚Æ‚ñ‚Ç‚ÌŠJ”­ŠÂ‹«‚Å—pˆÓ‚³‚ê
81 * ‚Ä‚¢‚éjD
82 */
83#ifndef TOPPERS_MACRO_ONLY
84#include <stdint.h>
85#include <limits.h>
86#endif /* TOPPERS_MACRO_ONLY */
87
88/*
89 * stdint.h‚Ì‘ã—p‚Æ‚È‚é’è‹`
90 *
91 * ŠJ”­ŠÂ‹«‚Éstdint.h‚ª—pˆÓ‚³‚ê‚Ä‚¨‚炸CŠe®”Œ^‚̃TƒCƒY‚ª‚ ‚éƒpƒ^[
92 * ƒ“‚É“–‚Ä‚Í‚Ü‚éê‡‚ɁCstdint.h‚Ì‘ã—p‚Æ‚È‚é’è‹`‚ð—^‚¦‚éD
93 *
94 * TOPPERS_STDINT_TYPE1: char/short/int/long long‚̃rƒbƒg’·‚ª‚»‚ꂼ‚ê
95 * 8/16/32/64ƒrƒbƒg‚ŁCƒ|ƒCƒ“ƒ^‚̃rƒbƒg’·‚ªlong
96 * ‚̃rƒbƒg’·‚ƈê’v‚·‚éê‡
97 */
98#ifdef TOPPERS_STDINT_TYPE1
99
100/*
101 * ƒRƒ“ƒpƒCƒ‰ˆË‘¶‚̃f[ƒ^Œ^‚Ì’è‹`
102 */
103#ifndef TOPPERS_MACRO_ONLY
104
105typedef signed char int8_t; /* •„†•t‚«8ƒrƒbƒg®” */
106typedef unsigned char uint8_t; /* •„†–³‚µ8ƒrƒbƒg®” */
107
108typedef signed short int16_t; /* •„†•t‚«16ƒrƒbƒg®” */
109typedef unsigned short uint16_t; /* •„†–³‚µ16ƒrƒbƒg®” */
110
111typedef signed int int32_t; /* •„†•t‚«32ƒrƒbƒg®” */
112typedef unsigned int uint32_t; /* •„†–³‚µ32ƒrƒbƒg®” */
113
114typedef signed long long int64_t; /* •„†•t‚«64ƒrƒbƒg®” */
115typedef unsigned long long uint64_t; /* •„†–³‚µ64ƒrƒbƒg®” */
116
117typedef int8_t int_least8_t; /* 8ƒrƒbƒgˆÈã‚Ì•„†•t‚«®” */
118typedef uint8_t uint_least8_t; /* 8ƒrƒbƒgˆÈã‚Ì•„†–³‚µ®” */
119
120typedef long intptr_t; /* ƒ|ƒCƒ“ƒ^‚ðŠi”[‚Å‚«‚é•„†•t‚«®” */
121typedef unsigned long uintptr_t; /* ƒ|ƒCƒ“ƒ^‚ðŠi”[‚Å‚«‚é•„†–³‚µ®” */
122
123#endif /* TOPPERS_MACRO_ONLY */
124
125/*
126 * ƒRƒ“ƒpƒCƒ‰ˆË‘¶‚̃f[ƒ^Œ^‚̐®”’萔‚ðì‚éƒ}ƒNƒ
127 */
128#ifndef INT8_C
129#define INT8_C(val) (val)
130#endif /* INT8_C */
131
132#ifndef UINT8_C
133#define UINT8_C(val) (val ## U)
134#endif /* UINT8_C */
135
136#ifndef INT16_C
137#define INT16_C(val) (val)
138#endif /* INT16_C */
139
140#ifndef UINT16_C
141#define UINT16_C(val) (val ## U)
142#endif /* UINT16_C */
143
144#ifndef INT32_C
145#define INT32_C(val) (val)
146#endif /* INT32_C */
147
148#ifndef UINT32_C
149#define UINT32_C(val) (val ## U)
150#endif /* UINT32_C */
151
152#ifndef INT64_C
153#define INT64_C(val) (val ## LL)
154#endif /* INT64_C */
155
156#ifndef UINT64_C
157#define UINT64_C(val) (val ## ULL)
158#endif /* UINT64_C */
159
160/*
161 * ƒRƒ“ƒpƒCƒ‰ˆË‘¶‚̃f[ƒ^Œ^‚ÉŠi”[‚Å‚«‚éÅ‘å’l‚ƍŏ¬’l‚Ì’è‹`
162 */
163#define INT8_MAX SCHAR_MAX
164#define INT8_MIN SCHAR_MIN
165#define UINT8_MAX UCHAR_MAX
166
167#define INT16_MAX SHRT_MAX
168#define INT16_MIN SHRT_MIN
169#define UINT16_MAX USHRT_MAX
170
171#define INT32_MAX INT_MAX
172#define INT32_MIN INT_MIN
173#define UINT32_MAX UINT_MAX
174
175#define INT64_MAX LLONG_MAX
176#define INT64_MIN LLONG_MIN
177#define UINT64_MAX ULLONG_MAX
178
179#define INT_LEAST8_MAX INT8_MAX
180#define INT_LEAST8_MIN INT8_MIN
181#define UINT_LEAST8_MAX INT8_MAX
182
183#endif /* TOPPERS_STDINT_TYPE1 */
184
185/*
186 * •‚“®¬”“_Œ^‚ÉŠÖ‚·‚é’è‹`
187 *
188 * TOPPERS_STDFLOAT_TYPE1: float‚ªIEEE754€‹’‚Ì’P¸“x•‚“®¬”“_”C
189 * double‚ª”{¸“x•‚“®¬”“_”‚̏ꍇ
190 */
191#ifdef TOPPERS_STDFLOAT_TYPE1
192#ifndef TOPPERS_MACRO_ONLY
193
194typedef float float32_t; /* IEEE754€‹’‚Ì’P¸“x•‚“®¬”“_” */
195typedef double double64_t; /* IEEE754€‹’‚Ì”{¸“x•‚“®¬”“_” */
196
197#endif /* TOPPERS_MACRO_ONLY */
198
199#define FLOAT32_MIN 1.17549435e-38F
200#define FLOAT32_MAX 3.40282347e+38F
201#define DOUBLE64_MIN 2.2250738585072014e-308
202#define DOUBLE64_MAX 1.7976931348623157e+308
203
204#endif /* TOPPERS_STDFLOAT_TYPE1 */
205#endif /* TOPPERS_TOOL_STDDEF_H */
Note: See TracBrowser for help on using the repository browser.