Merge with main truk.
[official-gcc.git] / gcc / config / i386 / cygwin-stdint.h
blob3c82cc6c35a8c98ed2e6c5efc827758785b990cd
1 /* Definitions for <stdint.h> types on systems using Cygwin.
2 Copyright (C) 2009-2014 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
9 any later version.
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #define SIG_ATOMIC_TYPE "int"
22 /* Exact-width integer types */
24 #define INT8_TYPE "signed char"
25 #define INT16_TYPE "short int"
26 #define INT32_TYPE "int"
27 #ifdef __x86_64__
28 #define INT64_TYPE "long int"
29 #else
30 #define INT64_TYPE "long long int"
31 #endif
33 #define UINT8_TYPE "unsigned char"
34 #define UINT16_TYPE "short unsigned int"
35 #define UINT32_TYPE "unsigned int"
36 #ifdef __x86_64__
37 #define UINT64_TYPE "long unsigned int"
38 #else
39 #define UINT64_TYPE "long long unsigned int"
40 #endif
42 /* Minimum-width integer types */
44 #define INT_LEAST8_TYPE "signed char"
45 #define INT_LEAST16_TYPE "short int"
46 #define INT_LEAST32_TYPE "int"
47 #ifdef __x86_64__
48 #define INT_LEAST64_TYPE "long int"
49 #else
50 #define INT_LEAST64_TYPE "long long int"
51 #endif
53 #define UINT_LEAST8_TYPE "unsigned char"
54 #define UINT_LEAST16_TYPE "short unsigned int"
55 #define UINT_LEAST32_TYPE "unsigned int"
56 #ifdef __x86_64__
57 #define UINT_LEAST64_TYPE "long unsigned int"
58 #else
59 #define UINT_LEAST64_TYPE "long long unsigned int"
60 #endif
62 /* Fastest minimum-width integer types */
64 #define INT_FAST8_TYPE "signed char"
65 #ifdef __x86_64__
66 #define INT_FAST16_TYPE "long int"
67 #define INT_FAST32_TYPE "long int"
68 #define INT_FAST64_TYPE "long int"
69 #else
70 #define INT_FAST16_TYPE "int"
71 #define INT_FAST32_TYPE "int"
72 #define INT_FAST64_TYPE "long long int"
73 #endif
75 #define UINT_FAST8_TYPE "unsigned char"
76 #ifdef __x86_64__
77 #define UINT_FAST16_TYPE "long unsigned int"
78 #define UINT_FAST32_TYPE "long unsigned int"
79 #define UINT_FAST64_TYPE "long unsigned int"
80 #else
81 #define UINT_FAST16_TYPE "unsigned int"
82 #define UINT_FAST32_TYPE "unsigned int"
83 #define UINT_FAST64_TYPE "long long unsigned int"
84 #endif
86 /* Integer types capable of holding object pointers */
88 #ifdef __x86_64__
89 #define INTPTR_TYPE "long int"
90 #define UINTPTR_TYPE "long unsigned int"
91 #else
92 #define INTPTR_TYPE "int"
93 #define UINTPTR_TYPE "unsigned int"
94 #endif