Number types changes
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
@@ -1,21 +1,34 @@
|
||||
#ifndef EV_HEADERS_INTERNAL_H
|
||||
#define EV_HEADERS_INTERNAL_H
|
||||
|
||||
typedef signed char __ev_int8_t;
|
||||
typedef short int __ev_int16_t;
|
||||
typedef int __ev_int32_t;
|
||||
typedef long long int __ev_int64_t;
|
||||
typedef signed char i8;
|
||||
typedef short int i16;
|
||||
typedef int i32;
|
||||
typedef long long int i64;
|
||||
|
||||
typedef unsigned char __ev_uint8_t;
|
||||
typedef unsigned short int __ev_uint16_t;
|
||||
typedef unsigned int __ev_uint32_t;
|
||||
typedef unsigned long long int __ev_uint64_t;
|
||||
typedef unsigned char u8;
|
||||
typedef unsigned short int u16;
|
||||
typedef unsigned int u32;
|
||||
typedef unsigned long long int u64;
|
||||
|
||||
typedef float __ev_float32_t;
|
||||
typedef double __ev_float64_t;
|
||||
typedef float f32;
|
||||
typedef double f64;
|
||||
|
||||
typedef _Bool __ev_bool;
|
||||
typedef _Bool bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
|
||||
#define i8_const(v) (i8){v}
|
||||
#define i16_const(v) (i16){v}
|
||||
#define i32_const(v) (i32){v}
|
||||
#define i64_const(v) (i64){v}
|
||||
|
||||
#define u8_const(v) (u8){v}
|
||||
#define u16_const(v) (u16){v}
|
||||
#define u32_const(v) (u32){v}
|
||||
#define u64_const(v) (u64){v}
|
||||
|
||||
#define f32_const(v) (f32){v}
|
||||
#define f64_const(v) (f64){v}
|
||||
|
||||
#endif // EV_HEADERS_INTERNAL_H
|
||||
|
||||
Reference in New Issue
Block a user