xref: /dflybsd-src/contrib/gcc-4.7/gcc/config/dragonfly-stdint.h (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*fdc4107cSJohn Marino /* Definitions for <stdint.h> types for DragonFly systems.
2*fdc4107cSJohn Marino    Copyright (C) 2009 Free Software Foundation, Inc.
3*fdc4107cSJohn Marino    Contributed by Gerald Pfeifer <gerald@pfeifer.com>.
4*fdc4107cSJohn Marino 
5*fdc4107cSJohn Marino This file is part of GCC.
6*fdc4107cSJohn Marino 
7*fdc4107cSJohn Marino GCC is free software; you can redistribute it and/or modify
8*fdc4107cSJohn Marino it under the terms of the GNU General Public License as published by
9*fdc4107cSJohn Marino the Free Software Foundation; either version 3, or (at your option)
10*fdc4107cSJohn Marino any later version.
11*fdc4107cSJohn Marino 
12*fdc4107cSJohn Marino GCC is distributed in the hope that it will be useful,
13*fdc4107cSJohn Marino but WITHOUT ANY WARRANTY; without even the implied warranty of
14*fdc4107cSJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*fdc4107cSJohn Marino GNU General Public License for more details.
16*fdc4107cSJohn Marino 
17*fdc4107cSJohn Marino Under Section 7 of GPL version 3, you are granted additional
18*fdc4107cSJohn Marino permissions described in the GCC Runtime Library Exception, version
19*fdc4107cSJohn Marino 3.1, as published by the Free Software Foundation.
20*fdc4107cSJohn Marino 
21*fdc4107cSJohn Marino You should have received a copy of the GNU General Public License and
22*fdc4107cSJohn Marino a copy of the GCC Runtime Library Exception along with this program;
23*fdc4107cSJohn Marino see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24*fdc4107cSJohn Marino <http://www.gnu.org/licenses/>.  */
25*fdc4107cSJohn Marino 
26*fdc4107cSJohn Marino #define SIG_ATOMIC_TYPE   "int"
27*fdc4107cSJohn Marino 
28*fdc4107cSJohn Marino #define INT8_TYPE         "signed char"
29*fdc4107cSJohn Marino #define INT16_TYPE        "short int"
30*fdc4107cSJohn Marino #define INT32_TYPE        "int"
31*fdc4107cSJohn Marino #define INT64_TYPE        (LONG_TYPE_SIZE == 64 ? "long int" : "long long int")
32*fdc4107cSJohn Marino #define UINT8_TYPE        "unsigned char"
33*fdc4107cSJohn Marino #define UINT16_TYPE       "short unsigned int"
34*fdc4107cSJohn Marino #define UINT32_TYPE       "unsigned int"
35*fdc4107cSJohn Marino #define UINT64_TYPE       (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "long long unsigned int")
36*fdc4107cSJohn Marino 
37*fdc4107cSJohn Marino #define INT_LEAST8_TYPE   INT8_TYPE
38*fdc4107cSJohn Marino #define INT_LEAST16_TYPE  INT16_TYPE
39*fdc4107cSJohn Marino #define INT_LEAST32_TYPE  INT32_TYPE
40*fdc4107cSJohn Marino #define INT_LEAST64_TYPE  INT64_TYPE
41*fdc4107cSJohn Marino #define UINT_LEAST8_TYPE  UINT8_TYPE
42*fdc4107cSJohn Marino #define UINT_LEAST16_TYPE UINT16_TYPE
43*fdc4107cSJohn Marino #define UINT_LEAST32_TYPE UINT32_TYPE
44*fdc4107cSJohn Marino #define UINT_LEAST64_TYPE UINT64_TYPE
45*fdc4107cSJohn Marino 
46*fdc4107cSJohn Marino #define INT_FAST8_TYPE    INT32_TYPE
47*fdc4107cSJohn Marino #define INT_FAST16_TYPE   INT32_TYPE
48*fdc4107cSJohn Marino #define INT_FAST32_TYPE   INT32_TYPE
49*fdc4107cSJohn Marino #define INT_FAST64_TYPE   INT64_TYPE
50*fdc4107cSJohn Marino #define UINT_FAST8_TYPE   UINT32_TYPE
51*fdc4107cSJohn Marino #define UINT_FAST16_TYPE  UINT32_TYPE
52*fdc4107cSJohn Marino #define UINT_FAST32_TYPE  UINT32_TYPE
53*fdc4107cSJohn Marino #define UINT_FAST64_TYPE  UINT64_TYPE
54*fdc4107cSJohn Marino 
55*fdc4107cSJohn Marino #define INTPTR_TYPE       (LONG_TYPE_SIZE == 64 ?  INT64_TYPE :  INT32_TYPE)
56*fdc4107cSJohn Marino #define UINTPTR_TYPE      (LONG_TYPE_SIZE == 64 ? UINT64_TYPE : UINT32_TYPE)
57