-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
126 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define assert(x) ((void)0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#pragma once | ||
|
||
#define FLT_RADIX 2 | ||
|
||
#define FLT_TRUE_MIN 1.40129846432481707092e-45F | ||
#define FLT_MIN 1.17549435082228750797e-38F | ||
#define FLT_MAX 3.40282346638528859812e+38F | ||
#define FLT_EPSILON 1.1920928955078125e-07F | ||
|
||
#define FLT_MANT_DIG 24 | ||
#define FLT_MIN_EXP (-125) | ||
#define FLT_MAX_EXP 128 | ||
#define FLT_HAS_SUBNORM 1 | ||
|
||
#define FLT_DIG 6 | ||
#define FLT_DECIMAL_DIG 9 | ||
#define FLT_MIN_10_EXP (-37) | ||
#define FLT_MAX_10_EXP 38 | ||
|
||
#define DBL_TRUE_MIN 4.94065645841246544177e-324 | ||
#define DBL_MIN 2.22507385850720138309e-308 | ||
#define DBL_MAX 1.79769313486231570815e+308 | ||
#define DBL_EPSILON 2.22044604925031308085e-16 | ||
|
||
#define DBL_MANT_DIG 53 | ||
#define DBL_MIN_EXP (-1021) | ||
#define DBL_MAX_EXP 1024 | ||
#define DBL_HAS_SUBNORM 1 | ||
|
||
#define DBL_DIG 15 | ||
#define DBL_DECIMAL_DIG 17 | ||
#define DBL_MIN_10_EXP (-307) | ||
#define DBL_MAX_10_EXP 308 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <stdint.h> | ||
|
||
#define INT_MIN INT32_MIN | ||
#define INT_MAX INT32_MAX | ||
#define LONG_MIN INT32_MIN | ||
#define LONG_MAX INT32_MAX | ||
#define LLONG_MIN INT64_MIN | ||
#define LLONG_MAX INT64_MAX | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#pragma once | ||
|
||
typedef unsigned char uint8_t; | ||
typedef unsigned short uint16_t; | ||
typedef unsigned int uint32_t; | ||
typedef unsigned long long uint64_t; | ||
|
||
typedef char int8_t; | ||
typedef short int16_t; | ||
typedef int int32_t; | ||
typedef long long int64_t; | ||
|
||
typedef unsigned int uintptr_t; | ||
typedef int intptr_t; | ||
|
||
_Static_assert(sizeof (uint8_t) == 1, "invalid size"); | ||
_Static_assert(sizeof (uint16_t) == 2, "invalid size"); | ||
_Static_assert(sizeof (uint32_t) == 4, "invalid size"); | ||
_Static_assert(sizeof (uint64_t) == 8, "invalid size"); | ||
|
||
_Static_assert(sizeof (int8_t) == 1, "invalid size"); | ||
_Static_assert(sizeof (int16_t) == 2, "invalid size"); | ||
_Static_assert(sizeof (int32_t) == 4, "invalid size"); | ||
_Static_assert(sizeof (int64_t) == 8, "invalid size"); | ||
|
||
_Static_assert(sizeof (uintptr_t) == sizeof (intptr_t), "invalid size"); | ||
_Static_assert(sizeof (uintptr_t) == sizeof (void*), "invalid size"); | ||
_Static_assert(sizeof (uintptr_t) == 4, "invalid size"); | ||
|
||
#define UINT8_MAX 0xFF | ||
#define UINT16_MAX 0xFFFF | ||
#define UINT32_MAX 0xFFFFFFFFUL | ||
#define UINT64_MAX 0xFFFFFFFFFFFFFFFFULL | ||
|
||
#define INT8_MAX 0x7F | ||
#define INT16_MAX 0x7FFF | ||
#define INT32_MAX 0x7FFFFFFF | ||
#define INT64_MAX 0x7FFFFFFFFFFFFFFF | ||
|
||
#define INT8_MIN (-0x80) | ||
#define INT16_MIN (-0x8000) | ||
#define INT32_MIN (-0x80000000L) | ||
#define INT64_MIN (-0x8000000000000000LL) |