1 /* $FreeBSD: stable/10/gnu/usr.bin/cc/cc_tools/size-host.h 169718 2007-05-19 04:25:59Z kan $ */
2 
3 #ifdef	SIZEOF_INT
4 # undef	SIZEOF_INT
5 #endif
6 
7 #ifdef	SIZEOF_SHORT
8 # undef	SIZEOF_SHORT
9 #endif
10 
11 #ifdef	SIZEOF_LONG
12 # undef	SIZEOF_LONG
13 #endif
14 
15 #ifdef	SIZEOF_VOID_P
16 # undef	SIZEOF_VOID_P
17 #endif
18 
19 #ifdef	SIZEOF_LONG_LONG
20 # undef	SIZEOF_LONG_LONG
21 #endif
22 
23 #ifdef  HOST_WIDE_INT
24 # undef	HOST_WIDE_INT
25 #endif
26 
27 #define SIZEOF_INT		4
28 #define SIZEOF_SHORT		2
29 #define	SIZEOF_LONG_LONG	8
30 
31 #if __LP64__
32 #define	SIZEOF_LONG		8
33 #define	SIZEOF_VOID_P		8
34 #define	HOST_WIDE_INT		long
35 #else
36 #define	SIZEOF_LONG		4
37 #define	SIZEOF_VOID_P		4
38 #define	HOST_WIDE_INT		long long
39 #endif
40 
41 #ifdef WORDS_BIGENDIAN
42 #undef WORDS_BIGENDIAN
43 #endif
44 
45 #if defined(__sparc64__) || defined(__ARMEB__)
46 #define WORDS_BIGENDIAN		1
47 #endif
48