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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [include/] [sys/] [config.h] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
#ifndef __SYS_CONFIG_H__
2
#define __SYS_CONFIG_H__
3
 
4
/* exceptions first */
5
/* ??? Why is much of this stuff duplicated with machine/ieeefp.h?  */
6
#if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) ||  defined(__W65__) || defined (__H8300S__)
7
#define _FLOAT_ARG float
8
#define __SMALL_BITFIELDS
9
#define _DOUBLE_IS_32BITS
10
#define __IEEE_BIG_ENDIAN
11
/* ???  This conditional is true for the h8500 and the w65, defining H8300
12
   in those cases probably isn't the right thing to do.  */
13
#define H8300 1
14
#endif
15
 
16
#ifdef __W65__
17
#define _DOUBLE_IS_32BITS
18
#define __SMALL_BITFIELDS
19
#define __IEEE_BIG_ENDIAN
20
#undef INT_MAX
21
#undef UINT_MAX
22
#define INT_MAX 32767
23
#define UINT_MAX 65535
24
 
25
#endif
26
 
27
/* 16 bit integer machines */
28
#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__) || defined (__H8300S__) || defined (__mn10200__) || defined (__AVR__)
29
 
30
#undef INT_MAX
31
#undef UINT_MAX
32
#define INT_MAX 32767
33
#define UINT_MAX 65535
34
#endif
35
 
36
#if defined(__D10V__)
37
#undef INT_MAX
38
#undef UINT_MAX
39
#define INT_MAX __INT_MAX__
40
#define UINT_MAX (__INT_MAX__ * 2U + 1)
41
#define _DOUBLE_IS_32BITS
42
#define _POINTER_INT short
43
#define __IEEE_BIG_ENDIAN
44
#endif
45
 
46
#ifdef ___AM29K__
47
#define _FLOAT_RET double
48
#endif
49
 
50
#ifdef __i386__
51
#ifndef __unix__
52
/* in other words, go32 */
53
#define _FLOAT_RET double
54
#endif
55
#endif
56
 
57
#ifdef __M32R__
58
#define __IEEE_BIG_ENDIAN
59
#endif
60
 
61
#ifdef __m68k__
62
/* This is defined in machine/ieeefp.h; need to check is it redundant here? */
63
#define __IEEE_BIG_ENDIAN
64
#endif
65
 
66
#ifdef __mn10300__
67
#define __IEEE_LITTLE_ENDIAN
68
#endif
69
 
70
#ifdef __mn10200__
71
#define _DOUBLE_IS_32BITS
72
#define __SMALL_BITFIELDS
73
#define __IEEE_LITTLE_ENDIAN
74
#endif
75
 
76
#ifdef __MMIX__
77
#define __IEEE_BIG_ENDIAN
78
#endif
79
 
80
#ifdef __AVR__
81
#define _DOUBLE_IS_32BITS
82
#define __SMALL_BITFIELDS
83
#define __IEEE_LITTLE_ENDIAN
84
#define _POINTER_INT short
85
#endif
86
 
87
#ifdef __TIC80__
88
#define __IEEE_LITTLE_ENDIAN
89
#endif
90
 
91
#ifdef __v850
92
#define __IEEE_LITTLE_ENDIAN
93
#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__sda__))
94
#endif
95
 
96
#ifdef __D30V__
97
#define __IEEE_BIG_ENDIAN
98
#endif
99
 
100
/* For the PowerPC eabi, force the _impure_ptr to be in .sdata */
101
#if defined(__PPC__) && defined(_CALL_SYSV)
102
#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata")))
103
#endif
104
 
105
#ifdef __sparc__
106
#ifdef __LITTLE_ENDIAN_DATA__
107
#define __IEEE_LITTLE_ENDIAN
108
#else
109
#define __IEEE_BIG_ENDIAN
110
#endif
111
#endif
112
 
113
#if INT_MAX == 32767
114
typedef long int __int32_t;
115
typedef unsigned long int __uint32_t;
116
#else
117
typedef int __int32_t;
118
typedef unsigned int __uint32_t;
119
#endif
120
 
121
#ifndef _POINTER_INT
122
#define _POINTER_INT long
123
#endif
124
 
125
#undef __RAND_MAX
126
#if INT_MAX == 32767
127
#define __RAND_MAX 32767
128
#else
129
#define __RAND_MAX 0x7fffffff
130
#endif
131
 
132
 
133
#if defined(__CYGWIN32__) || defined(__CYGWIN__)
134
#define __FILENAME_MAX__ (260 - 1 /* NUL */)
135
#define _READ_WRITE_RETURN_TYPE _ssize_t
136
#if defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
137
#define __IMPORT
138
#else
139
#define __IMPORT __declspec(dllimport)
140
#endif
141
#endif
142
 
143
#if defined(__rtems__)
144
#define __FILENAME_MAX__ 255
145
#define _READ_WRITE_RETURN_TYPE _ssize_t
146
#endif
147
 
148
#ifndef __IMPORT
149
#define __IMPORT
150
#endif
151
 
152
/* Define return type of read/write routines.  In POSIX, the return type
153
   for read()/write() is "ssize_t" but legacy newlib code has been using
154
   "int" for some time.  If not specified, "int" is defaulted.  */
155
#ifndef _READ_WRITE_RETURN_TYPE
156
#define _READ_WRITE_RETURN_TYPE int
157
#endif
158
 
159
#endif /* __SYS_CONFIG_H__ */

powered by: WebSVN 2.1.0

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