aboutsummaryrefslogtreecommitdiff
path: root/arch/all/compiler-renesas/bits/types/exact.h
blob: addb82f109d395b6c727f03c0289dcc4f5b2213c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* ****************************************************************************
 * types/exact.h -- Exact-width integer types for SHC.
 * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
 *
 * This file is part of the 'all/compiler-renesas' module,
 * in libcarrot, an experimental modular libc project.
 *
 * This file is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
 * any later version.
 *
 * This file is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Lesser Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 * ************************************************************************* */
typedef   signed char   __int8_t;
typedef unsigned char  __uint8_t;
typedef   signed short  __int16_t;
typedef unsigned short __uint16_t;
typedef   signed long   __int32_t;
typedef unsigned long  __uint32_t;

#define   __INT8_WIDTH ( 8)
#define   __INT8_MIN     __INT8_C(-128)
#define   __INT8_MAX     __INT8_C( 127)
#define  __UINT8_MIN    __UINT8_C( 0)
#define  __UINT8_MAX    __UINT8_C( 255)
#define   __PRI8       "hh"

#define  __INT16_WIDTH ( 16)
#define  __INT16_MIN    __INT16_C(-32768)
#define  __INT16_MAX    __INT16_C( 32767)
#define __UINT16_MIN   __UINT16_C( 0)
#define __UINT16_MAX   __UINT16_C( 65535)
#define  __PRI16       "h"

#define  __INT32_WIDTH ( 32)
#define  __INT32_MIN    __INT32_C(-2147483648)
#define  __INT32_MAX    __INT32_C( 2147483647)
#define __UINT32_MIN   __UINT32_C(0)
#define __UINT32_MAX   __UINT32_C( 4294967295)
#define  __PRI32       ""