1 #ifndef __SYS_CONFIG_H__
2 #define __SYS_CONFIG_H__
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. */
17 #define _DOUBLE_IS_32BITS
18 #define __SMALL_BITFIELDS
19 #define __IEEE_BIG_ENDIAN
23 #define UINT_MAX 65535
27 /* 16 bit integer machines */
28 #if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__) || defined (__H8300S__) || defined (__mn10200__)
33 #define UINT_MAX 65535
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
47 #define _FLOAT_RET double
52 /* in other words, go32 */
53 #define _FLOAT_RET double
58 #define __IEEE_BIG_ENDIAN
62 /* This is defined in machine/ieeefp.h; need to check is it redundant here? */
63 #define __IEEE_BIG_ENDIAN
67 #define __IEEE_LITTLE_ENDIAN
71 #define _DOUBLE_IS_32BITS
72 #define __SMALL_BITFIELDS
73 #define __IEEE_LITTLE_ENDIAN
77 #define __IEEE_LITTLE_ENDIAN
81 #define __IEEE_LITTLE_ENDIAN
82 #define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__sda__))
86 #define __IEEE_BIG_ENDIAN
89 /* For the PowerPC eabi, force the _impure_ptr to be in .sdata */
90 #if defined(__PPC__) && defined(_CALL_SYSV)
91 #define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata")))
95 #ifdef __LITTLE_ENDIAN_DATA__
96 #define __IEEE_LITTLE_ENDIAN
98 #define __IEEE_BIG_ENDIAN
103 typedef long int __int32_t;
104 typedef unsigned long int __uint32_t;
106 typedef int __int32_t;
107 typedef unsigned int __uint32_t;
111 #define _POINTER_INT long
115 #endif /* __SYS_CONFIG_H__ */
.