1/*	$NetBSD: sparc64-gcc.h,v 1.1 2002/02/05 07:53:07 jmc Exp $	*/
2
3/*
4-------------------------------------------------------------------------------
5One of the macros `BIGENDIAN' or `LITTLEENDIAN' must be defined.
6-------------------------------------------------------------------------------
7*/
8#include <machine/endian.h>
9#if _BYTE_ORDER == _BIG_ENDIAN
10#define BIGENDIAN
11#endif
12#if _BYTE_ORDER == _LITTLE_ENDIAN
13#define LITTLEENDIAN
14#endif
15
16/*
17-------------------------------------------------------------------------------
18The macro `BITS64' can be defined to indicate that 64-bit integer types are
19supported by the compiler.
20-------------------------------------------------------------------------------
21*/
22#define BITS64
23
24/*
25-------------------------------------------------------------------------------
26Each of the following `typedef's defines the most convenient type that holds
27integers of at least as many bits as specified.  For example, `uint8' should
28be the most convenient type that can hold unsigned integers of as many as
298 bits.  The `flag' type must be able to hold either a 0 or 1.  For most
30implementations of C, `flag', `uint8', and `int8' should all be `typedef'ed
31to the same as `int'.
32-------------------------------------------------------------------------------
33*/
34typedef int flag;
35typedef int uint8;
36typedef int int8;
37typedef int uint16;
38typedef int int16;
39typedef unsigned int uint32;
40typedef signed int int32;
41#ifdef BITS64
42typedef unsigned long long int uint64;
43typedef signed long long int int64;
44#endif
45
46/*
47-------------------------------------------------------------------------------
48Each of the following `typedef's defines a type that holds integers
49of _exactly_ the number of bits specified.  For instance, for most
50implementation of C, `bits16' and `sbits16' should be `typedef'ed to
51`unsigned short int' and `signed short int' (or `short int'), respectively.
52-------------------------------------------------------------------------------
53*/
54typedef unsigned char bits8;
55typedef signed char sbits8;
56typedef unsigned short int bits16;
57typedef signed short int sbits16;
58typedef unsigned int bits32;
59typedef signed int sbits32;
60#ifdef BITS64
61typedef unsigned long long int bits64;
62typedef signed long long int sbits64;
63#endif
64
65#ifdef BITS64
66/*
67-------------------------------------------------------------------------------
68The `LIT64' macro takes as its argument a textual integer literal and
69if necessary ``marks'' the literal as having a 64-bit integer type.
70For example, the GNU C Compiler (`gcc') requires that 64-bit literals be
71appended with the letters `LL' standing for `long long', which is `gcc's
72name for the 64-bit integer type.  Some compilers may allow `LIT64' to be
73defined as the identity macro:  `#define LIT64( a ) a'.
74-------------------------------------------------------------------------------
75*/
76#define LIT64( a ) a##LL
77#endif
78
79/*
80-------------------------------------------------------------------------------
81The macro `INLINE' can be used before functions that should be inlined.  If
82a compiler does not support explicit inlining, this macro should be defined
83to be `static'.
84-------------------------------------------------------------------------------
85*/
86#define INLINE static inline
87
88#define FLOAT64_DEMANGLE(a)	(a)
89#define FLOAT64_MANGLE(a)	(a)
90