Merged ev_types and ev_limits to ev_numeric
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
@@ -1,7 +1,21 @@
|
|||||||
#ifndef EV_HEADERS_LIMITS_H
|
#ifndef EV_HEADERS_NUMERIC_H
|
||||||
#define EV_HEADERS_LIMITS_H
|
#define EV_HEADERS_NUMERIC_H
|
||||||
|
|
||||||
#include "ev_types.h"
|
// Signed integers
|
||||||
|
typedef signed char i8;
|
||||||
|
typedef short int i16;
|
||||||
|
typedef int i32;
|
||||||
|
typedef long long int i64;
|
||||||
|
|
||||||
|
// Unsigned integers
|
||||||
|
typedef unsigned char u8;
|
||||||
|
typedef unsigned short int u16;
|
||||||
|
typedef unsigned int u32;
|
||||||
|
typedef unsigned long long int u64;
|
||||||
|
|
||||||
|
// Floating-Point Numbers
|
||||||
|
typedef float f32;
|
||||||
|
typedef double f64;
|
||||||
|
|
||||||
struct Int8Data { i8 MIN; i8 MAX; };
|
struct Int8Data { i8 MIN; i8 MAX; };
|
||||||
struct Int16Data { i16 MIN; i16 MAX; };
|
struct Int16Data { i16 MIN; i16 MAX; };
|
||||||
@@ -80,4 +94,4 @@ static const struct Float64Data Float64 =
|
|||||||
.EPS = 2.2204460492503131e-016
|
.EPS = 2.2204460492503131e-016
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // EV_HEADERS_LIMITS_H
|
#endif // EV_HEADERS_NUMERIC_H
|
||||||
20
ev_types.h
20
ev_types.h
@@ -1,20 +0,0 @@
|
|||||||
#ifndef EV_HEADERS_TYPES_H
|
|
||||||
#define EV_HEADERS_TYPES_H
|
|
||||||
|
|
||||||
// Signed integers
|
|
||||||
typedef signed char i8;
|
|
||||||
typedef short int i16;
|
|
||||||
typedef int i32;
|
|
||||||
typedef long long int i64;
|
|
||||||
|
|
||||||
// Unsigned integers
|
|
||||||
typedef unsigned char u8;
|
|
||||||
typedef unsigned short int u16;
|
|
||||||
typedef unsigned int u32;
|
|
||||||
typedef unsigned long long int u64;
|
|
||||||
|
|
||||||
// Floating-Point Numbers
|
|
||||||
typedef float f32;
|
|
||||||
typedef double f64;
|
|
||||||
|
|
||||||
#endif // EV_HEADERS_TYPES_H
|
|
||||||
Reference in New Issue
Block a user