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