Merged ev_types and ev_limits to ev_numeric

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2022-01-02 14:51:59 +02:00
parent c5b6d7ba15
commit 30e40047c5
2 changed files with 97 additions and 103 deletions

View File

@@ -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

View File

@@ -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