source: uKadecot/trunk/ssp/arch/ccrx/tool_stddef.h@ 101

Last change on this file since 101 was 101, checked in by coas-nagasima, 8 years ago

TOPPERS/uKadecotのソースコードを追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/plain
File size: 4.0 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-2006 by Embedded and Real-Time Systems Laboratory
8 * Graduate School of Information Science, Nagoya Univ., JAPAN
9 * Copyright (C) 2007-2010 by Witz Corporation, JAPAN
10 *
11 * ã‹L’˜ìŒ ŽÒ‚́CˆÈ‰º‚Ì (1)`(4) ‚ÌðŒ‚©CFree Software Foundation
12 * ‚É‚æ‚Á‚ÄŒö•\‚³‚ê‚Ä‚¢‚é GNU General Public License ‚Ì Version 2 ‚É‹L
13 * q‚³‚ê‚Ä‚¢‚éðŒ‚ð–ž‚½‚·ê‡‚ÉŒÀ‚èC–{ƒ\ƒtƒgƒEƒFƒAi–{ƒ\ƒtƒgƒEƒFƒA
14 * ‚ð‰ü•Ï‚µ‚½‚à‚Ì‚ðŠÜ‚ށDˆÈ‰º“¯‚¶j‚ðŽg—pE•¡»E‰ü•ÏEÄ”z•ziˆÈ‰ºC
15 * —˜—p‚ƌĂԁj‚·‚邱‚Ƃ𖳏ž‚Å‹–‘ø‚·‚éD
16 * (1) –{ƒ\ƒtƒgƒEƒFƒA‚ðƒ\[ƒXƒR[ƒh‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́Cã‹L‚Ì’˜ì
17 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’肪C‚»‚Ì‚Ü‚Ü‚ÌŒ`‚Ń\[
18 * ƒXƒR[ƒh’†‚ÉŠÜ‚Ü‚ê‚Ä‚¢‚邱‚ƁD
19 * (2) –{ƒ\ƒtƒgƒEƒFƒA‚ðCƒ‰ƒCƒuƒ‰ƒŠŒ`Ž®‚ȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
20 * —p‚Å‚«‚éŒ`‚ōĔz•z‚·‚éê‡‚ɂ́CÄ”z•z‚É”º‚¤ƒhƒLƒ…
21ƒƒ“ƒgi—˜—p
22 * ŽÒƒ}ƒjƒ…
23ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L
24 * ‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
25 * (3) –{ƒ\ƒtƒgƒEƒFƒA‚ðC‹@Ší‚É‘g‚ݍž‚ނȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
26 * —p‚Å‚«‚È‚¢Œ`‚ōĔz•z‚·‚éê‡‚ɂ́CŽŸ‚Ì‚¢‚¸‚ê‚©‚ÌðŒ‚ð–ž‚½‚·‚±
27 * ‚ƁD
28 * (a) Ä”z•z‚É”º‚¤ƒhƒLƒ…
29ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
30ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜
31 * ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
32 * (b) Ä”z•z‚ÌŒ`‘Ô‚ðC•Ê‚É’è‚ß‚é•û–@‚É‚æ‚Á‚āCTOPPERSƒvƒƒWƒFƒNƒg‚É
33 * •ñ‚·‚邱‚ƁD
34 * (4) –{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚é‚¢‚©‚Ȃ鑹
35 * ŠQ‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð–Ɛӂ·‚邱‚Ɓ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‚»‚Ì“K—p‰Â”\«‚à
39 * ŠÜ‚߂āC‚¢‚©‚È‚é•ÛØ‚às‚í‚È‚¢D‚Ü‚½C–{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼
40 * Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚½‚¢‚©‚Ȃ鑹ŠQ‚ÉŠÖ‚µ‚Ä‚àC‚»‚̐ӔC‚𕉂í‚È‚¢D
41 *
42 */
43
44/*
45 * t_stddef.h‚ÌŠJ”­ŠÂ‹«ˆË‘¶•”iƒ‹ƒlƒTƒX RXƒc[ƒ‹ƒ`ƒFƒCƒ“—pj
46 *
47 * ‚±‚̃Cƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹‚́Ct_stddef.h ‚̐擪‚ŃCƒ“ƒNƒ‹[ƒh‚³‚ê‚éD
48 * ‘¼‚̃tƒ@ƒCƒ‹‚©‚ç‚Í’¼ÚƒCƒ“ƒNƒ‹[ƒh‚·‚邱‚Æ‚Í‚È‚¢D‘¼‚̃Cƒ“ƒNƒ‹[ƒh
49 * ƒtƒ@ƒCƒ‹‚ɐ旧‚Á‚ďˆ—‚³‚ê‚邽‚߁C‘¼‚̃Cƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹‚Ɉˑ¶‚µ
50 * ‚Ä‚Í‚È‚ç‚È‚¢D
51 */
52
53#if !defined( TOPPERS_TOOL_STDDEF_H )
54#define TOPPERS_TOOL_STDDEF_H
55
56/*
57 * ƒRƒ“ƒpƒCƒ‰‚ÌŠg’£‹@”\‚Ì‚½‚߂̃}ƒNƒ’è‹`
58 */
59/*
60 * inline Ž¯•ÊŽq‚ÍŠO•”’è‹`‚𐶐¬‚µ‚È‚¢.
61 */
62#define Inline static inline
63
64/*
65 * ƒCƒ“ƒ‰ƒCƒ“ƒAƒZƒ“ƒuƒ‰‚Í–{ƒRƒ“ƒpƒCƒ‰‚Å‚Í
66 * #pragma inline_asm‚݂̂̃Tƒ|[ƒg‚ƂȂ邽‚ß,
67 * asm/Asm’è‹`‚͍s‚í‚È‚¢.
68 */
69
70/*
71 * NoReturn / alignof‚Í–{ƒRƒ“ƒpƒCƒ‰‚ł̓Tƒ|[ƒg‚³‚ê‚È‚¢.
72 * offsetof‚Ístddef.h‚Ì’è‹`‚ð—˜—p‚·‚é.
73 */
74#define NoReturn
75
76
77/*
78 * ŠJ”­ŠÂ‹«‚Ì•W€ƒCƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹‚Ì—˜—p
79 *
80 * NULL‚Ì’è‹`‚ðstddef.h‚©‚çCINT_MAXCINT_MINCUINT_MAXCLONG_MAXC
81 * LONG_MINCULONG_MAXCCHAR_BIT‚Ì’è‹`‚ðlimits.h‚©‚çŽæ‚荞‚ށD
82 *
83 * C++/EC++‚ł́C•W€Žd—lã‚Í‚±‚ê‚ç‚̃Cƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹‚ª—pˆÓ‚³‚ê‚Ä
84 * ‚¢‚é‚Æ‚ÍŒÀ‚ç‚È‚¢‚Ì‚Å’ˆÓ‚ª•K—v‚Å‚ ‚éi‚Ù‚Æ‚ñ‚Ç‚ÌŠJ”­ŠÂ‹«‚Å—pˆÓ‚³‚ê
85 * ‚Ä‚¢‚éjD
86 */
87#ifndef TOPPERS_MACRO_ONLY
88#include <stddef.h>
89#include <limits.h>
90#endif /* TOPPERS_MACRO_ONLY */
91
92
93/*
94 * ƒRƒ“ƒpƒCƒ‰ˆË‘¶‚̃f[ƒ^Œ^‚Ì’è‹`
95 *
96 * stdint.h‚ðƒCƒ“ƒNƒ‹[ƒh‚·‚é
97 */
98#ifndef TOPPERS_MACRO_ONLY
99#include <stdint.h>
100#endif /* TOPPERS_MACRO_ONLY */
101
102
103/*
104 * •‚“®¬”“_Œ^‚ÉŠÖ‚·‚é’è‹`
105 *
106 * ‰º‹L‚Ì’è‹`‚Ídbl_size = 8ƒIƒvƒVƒ‡ƒ“‚ðŽw’肵‚½ê‡‚Ì‚Ý—LŒø‚Æ‚·‚邱‚Æ.
107 */
108#ifndef TOPPERS_MACRO_ONLY
109typedef float float32_t; /* IEEE754€‹’‚Ì’P¸“x•‚“®¬”“_” */
110typedef double double64_t; /* IEEE754€‹’‚Ì”{¸“x•‚“®¬”“_” */
111#endif /* TOPPERS_MACRO_ONLY */
112
113#define FLOAT32_MIN ( 1.4012984643248171e-45F )
114#define FLOAT32_MAX ( 3.4028234663852886e+38F )
115#define DOUBLE64_MIN ( 4.9406564584124654e-324 )
116#define DOUBLE64_MAX ( 1.7976931348623157e+308 )
117
118
119/*
120 * ‹óƒ‰ƒxƒ‹‚Ì’è‹`
121 *
122 * –{ƒRƒ“ƒpƒCƒ‰‚Å‚Í‘å‚«‚³ƒ[ƒ‚Ì”z—ñ‚̓Rƒ“ƒpƒCƒ‹ƒGƒ‰[‚ɂȂ邽‚ß,
123 * ƒTƒCƒY1‚É‚Ä’è‹`‚·‚é.
124 */
125#define TOPPERS_EMPTY_LABEL( type, symbol ) type symbol[ 1 ]
126
127
128#endif /* TOPPERS_TOOL_STDDEF_H */
129
Note: See TracBrowser for help on using the repository browser.