voron

experimental ARM OS
git clone git://git.2f30.org/voron
Log | Files | Refs | README | LICENSE

inttypes.h (853B)


      1 #ifndef __INTTYPES_H
      2 #define __INTTYPES_H
      3 
      4 typedef signed char		s8;
      5 typedef unsigned char		u8;
      6 typedef short			s16;
      7 typedef unsigned short 	u16;
      8 typedef int			s32;
      9 typedef unsigned int 		u32;
     10 typedef long long		s64;
     11 typedef unsigned long long	u64;
     12 
     13 typedef s8	int8_t;
     14 typedef u8	uint8_t;
     15 typedef s16	int16_t;
     16 typedef u16	uint16_t;
     17 typedef s32	int32_t;
     18 typedef u32	uint32_t;
     19 typedef s64	int64_t;
     20 typedef u64	uint64_t;
     21 
     22 typedef unsigned int	uint_t;
     23 typedef unsigned long	ulong_t;
     24 typedef unsigned int	size_t;
     25 typedef int	 	ssize_t;
     26 typedef unsigned long	uintptr_t;
     27 typedef long		intptr_t;
     28 
     29 #define S8_C(x)  x
     30 #define U8_C(x)  x ## U
     31 #define S16_C(x) x
     32 #define U16_C(x) x ## U
     33 #define S32_C(x) x
     34 #define U32_C(x) x ## U
     35 #define S64_C(x) x ## LL
     36 #define U64_C(x) x ## ULL
     37 
     38 #define PTR_DIFF(a, b)	((uintptr_t)(a) - (uintptr_t)(b))
     39 
     40 #endif	/* __INTTYPES_H */