Merge branch 'master' of github.com:sylware/cinitramfs
[cinitramfs.git] / ulinux / compiler_types.h
blobcfcdf7912cb3e3595614c27d00192f6384d36ff3
1 #ifndef ULINUX_COMPILER_TYPES_H
2 #define ULINUX_COMPILER_TYPES_H
3 /******************************************************************************
4 this code is protected by the GNU affero GPLv3
5 author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
6 *******************************************************************************/
7 /*
8 with GCC
9 'char' is not a 'signed char' neither it is a 'unsigned char'
10 but 'char' is signed on x86 and unsigned on ARM... feel the difference
11 typedef signed char ulinux_t; t stands for tiny
12 typedef short ulinux_s;
13 typedef int ulinux_i;
14 typedef long ulinux_l;
15 typedef long long ulinux_ll;
17 typedef unsigned char ulinux_ut; t stands for tiny
18 typedef unsigned short ulinux_us;
19 typedef unsigned ulinux_u;
20 typedef unsigned long ulinux_ul;
21 typedef unsigned long long ulinux_ull;
23 typedef float ulinux_f;
26 #define ulinux_t signed char
27 #define ulinux_s short
28 #define ulinux_i int
29 #define ulinux_l long
30 #define ulinux_ll long long
32 #define ulinux_ut unsigned char
33 #define ulinux_us unsigned short
34 #define ulinux_u unsigned
35 #define ulinux_ul unsigned long
36 #define ulinux_ull unsigned long long
38 #define ulinux_f float
39 #endif