#include <sys/types.h>Go to the source code of this file.
Classes | |
| union | SYS_FPRealUnionT< fpreal32 > |
| union | SYS_FPRealUnionT< fpreal64 > |
Defines | |
| #define | SYS_PRI64_PREFIX "ll" |
| #define | SYS_PRId64 SYS_PRI64_PREFIX "d" |
| #define | SYS_PRIu64 SYS_PRI64_PREFIX "u" |
| #define | SYS_PRIx64 SYS_PRI64_PREFIX "x" |
| #define | SYS_PRIX64 SYS_PRI64_PREFIX "X" |
| #define | SYS_INT64_C(x) x ## LL |
| #define | SYS_UINT64_C(x) x ## ULL |
| #define | SYS_INT8_MIN (-128) |
| #define | SYS_INT8_MAX (127) |
| #define | SYS_UINT8_MAX (255) |
| #define | SYS_INT16_MIN (-32767-1) |
| #define | SYS_INT16_MAX (32767) |
| #define | SYS_UINT16_MAX (65535) |
| #define | SYS_INT32_MIN (-2147483647-1) |
| #define | SYS_INT32_MAX (2147483647) |
| #define | SYS_UINT32_MAX (4294967295U) |
| #define | SYS_INT64_MIN (-SYS_INT64_C(9223372036854775807)-1) |
| #define | SYS_INT64_MAX (SYS_INT64_C(9223372036854775807)) |
| #define | SYS_UINT64_MAX (SYS_UINT64_C(18446744073709551615)) |
| #define | SYS_DBL_DIG 17 |
| #define | SYS_FLT_DIG 9 |
| #define | SYS_FTOLERANCE ((fpreal32)0.00001) |
| #define | SYS_FTOLERANCE_D (fpreal64(SYS_FTOLERANCE)) |
| #define | SYS_FP32_EPSILON FLT_EPSILON |
| #define | SYS_FP64_EPSILON DBL_EPSILON |
| #define | SYS_FP32_MIN ((fpreal32)2e-45) |
| #define | SYS_FP64_MIN ((fpreal64)2e-324) |
| #define | SYS_FP32_MAX ((fpreal32)FLT_MAX) |
| #define | SYS_FP64_MAX ((fpreal64)DBL_MAX) |
| #define | SYS_SIZEOF_FPREAL 8 |
| #define | SYS_FPREAL_DIG SYS_DBL_DIG |
| #define | SYS_FTOLERANCE_R (fpreal(SYS_FTOLERANCE)) |
| #define | SYS_FPEPSILON SYS_FP64_EPSILON |
| #define | SYS_FPREAL_MIN SYS_FP64_MIN |
| #define | SYS_FPREAL_MAX SYS_FP64_MAX |
| #define | SYS_SCANF_FPREAL "lg" |
| #define | SYS_DIG_FMT_INTERNAL(PREC) "%." #PREC "g" |
| #define | SYS_DIG_FMT(PREC) SYS_DIG_FMT_INTERNAL(PREC) |
| #define | SYS_FLT_DIG_FMT SYS_DIG_FMT(SYS_FLT_DIG) |
| #define | SYS_DBL_DIG_FMT SYS_DIG_FMT(SYS_DBL_DIG) |
| #define | SYS_FPREAL_DIG_FMT SYS_DIG_FMT(SYS_FPREAL_DIG) |
| #define | CONST_INT8(x) ((int8)x) |
| #define | CONST_UINT8(x) ((uint8)x) |
| #define | CONST_INT16(x) ((int16)x) |
| #define | CONST_UINT16(x) ((uint16)x) |
| #define | CONST_INT32(x) ((int32)x) |
| #define | CONST_UINT32(x) ((uint32)x) |
| #define | CONST_INT64(x) (x##LL) |
| #define | CONST_UINT64(x) (x##LL) |
| #define | CONST_FPREAL16(c) ((fpreal16)c) |
| #define | CONST_FPREAL32(c) ((fpreal32)c) |
| #define | CONST_FPREAL64(c) ((fpreal64)c) |
| #define | CONST_FPREAL(c) ((fpreal)c) |
| #define | SYS_DEPRECATED |
| Mark function as deprecated and may be removed in the future. | |
| #define | SYS_FORCE_INLINE inline |
| #define | SYS_NO_INLINE |
| Mark function as NOT to be inlined. | |
| #define | SYS_PRINTF_CHECK_ATTRIBUTE(string_index, first_to_check) |
| #define | SYS_PACKED_STRUCT_HINT_BEGIN(name, n) struct name |
| #define | SYS_PACKED_STRUCT_HINT_END |
Typedefs | |
| typedef signed char | int8 |
| typedef unsigned char | uint8 |
| typedef short | int16 |
| typedef unsigned short | uint16 |
| typedef int | int32 |
| typedef unsigned int | uint32 |
| typedef unsigned char | uchar |
| typedef unsigned int | uint |
| typedef long long | int64 |
| typedef unsigned long long | uint64 |
| typedef int64 | exint |
| typedef float | fpreal32 |
| typedef double | fpreal64 |
| typedef unsigned short | fpreal16 |
| typedef double | fpreal |
| typedef union SYS_FPRealUnionT < fpreal > | SYS_FPRealUnionR |
| typedef union SYS_FPRealUnionT < fpreal32 > | SYS_FPRealUnionF |
| typedef union SYS_FPRealUnionT < fpreal64 > | SYS_FPRealUnionD |
Definition at line 237 of file SYS_Types.h.
Definition at line 234 of file SYS_Types.h.
Definition at line 235 of file SYS_Types.h.
Definition at line 236 of file SYS_Types.h.
Definition at line 221 of file SYS_Types.h.
Definition at line 223 of file SYS_Types.h.
Definition at line 230 of file SYS_Types.h.
Definition at line 219 of file SYS_Types.h.
Definition at line 222 of file SYS_Types.h.
Definition at line 224 of file SYS_Types.h.
Definition at line 231 of file SYS_Types.h.
Definition at line 220 of file SYS_Types.h.
| #define SYS_DBL_DIG 17 |
Definition at line 128 of file SYS_Types.h.
| #define SYS_DBL_DIG_FMT SYS_DIG_FMT(SYS_DBL_DIG) |
Definition at line 207 of file SYS_Types.h.
| #define SYS_DEPRECATED |
Mark function as deprecated and may be removed in the future.
Function modifiers
Note that these qualifiers can only appear in function declarations.
Definition at line 290 of file SYS_Types.h.
| #define SYS_DIG_FMT | ( | PREC | ) | SYS_DIG_FMT_INTERNAL(PREC) |
Definition at line 203 of file SYS_Types.h.
| #define SYS_DIG_FMT_INTERNAL | ( | PREC | ) | "%." #PREC "g" |
Definition at line 202 of file SYS_Types.h.
| #define SYS_FLT_DIG 9 |
| #define SYS_FLT_DIG_FMT SYS_DIG_FMT(SYS_FLT_DIG) |
Definition at line 205 of file SYS_Types.h.
| #define SYS_FORCE_INLINE inline |
Mark function to be inlined. If this is done, taking the address of such a function is not allowed.
Definition at line 300 of file SYS_Types.h.
| #define SYS_FP32_EPSILON FLT_EPSILON |
Definition at line 155 of file SYS_Types.h.
| #define SYS_FP32_MAX ((fpreal32)FLT_MAX) |
Definition at line 160 of file SYS_Types.h.
| #define SYS_FP32_MIN ((fpreal32)2e-45) |
Definition at line 158 of file SYS_Types.h.
| #define SYS_FP64_EPSILON DBL_EPSILON |
Definition at line 156 of file SYS_Types.h.
| #define SYS_FP64_MAX ((fpreal64)DBL_MAX) |
Definition at line 161 of file SYS_Types.h.
| #define SYS_FP64_MIN ((fpreal64)2e-324) |
Definition at line 159 of file SYS_Types.h.
| #define SYS_FPEPSILON SYS_FP64_EPSILON |
Definition at line 194 of file SYS_Types.h.
| #define SYS_FPREAL_DIG SYS_DBL_DIG |
Definition at line 192 of file SYS_Types.h.
| #define SYS_FPREAL_DIG_FMT SYS_DIG_FMT(SYS_FPREAL_DIG) |
Definition at line 209 of file SYS_Types.h.
| #define SYS_FPREAL_MAX SYS_FP64_MAX |
Definition at line 196 of file SYS_Types.h.
| #define SYS_FPREAL_MIN SYS_FP64_MIN |
Definition at line 195 of file SYS_Types.h.
| #define SYS_FTOLERANCE ((fpreal32)0.00001) |
Definition at line 150 of file SYS_Types.h.
| #define SYS_FTOLERANCE_D (fpreal64(SYS_FTOLERANCE)) |
Definition at line 151 of file SYS_Types.h.
| #define SYS_FTOLERANCE_R (fpreal(SYS_FTOLERANCE)) |
Definition at line 193 of file SYS_Types.h.
| #define SYS_INT16_MAX (32767) |
Definition at line 107 of file SYS_Types.h.
| #define SYS_INT16_MIN (-32767-1) |
Definition at line 106 of file SYS_Types.h.
| #define SYS_INT32_MAX (2147483647) |
Definition at line 112 of file SYS_Types.h.
| #define SYS_INT32_MIN (-2147483647-1) |
Definition at line 111 of file SYS_Types.h.
Definition at line 96 of file SYS_Types.h.
| #define SYS_INT64_MAX (SYS_INT64_C(9223372036854775807)) |
Definition at line 117 of file SYS_Types.h.
| #define SYS_INT64_MIN (-SYS_INT64_C(9223372036854775807)-1) |
Definition at line 116 of file SYS_Types.h.
| #define SYS_INT8_MAX (127) |
Definition at line 102 of file SYS_Types.h.
| #define SYS_INT8_MIN (-128) |
Definition at line 101 of file SYS_Types.h.
| #define SYS_NO_INLINE |
Struct modifiers
Note that these qualifiers can only appear in struct declarations. Compiler hint to pack the struct with the specified alignment. Note this is not supported on some platforms and is only a hint.
Definition at line 343 of file SYS_Types.h.
| #define SYS_PACKED_STRUCT_HINT_END |
Struct modifiers
Note that these qualifiers can only appear in struct declarations. Compiler hint to pack the struct with the specified alignment. Note this is not supported on some platforms and is only a hint.
Definition at line 344 of file SYS_Types.h.
| #define SYS_PRI64_PREFIX "ll" |
Definition at line 51 of file SYS_Types.h.
| #define SYS_PRId64 SYS_PRI64_PREFIX "d" |
Definition at line 55 of file SYS_Types.h.
| #define SYS_PRINTF_CHECK_ATTRIBUTE | ( | string_index, | |||
| first_to_check | ) |
Mark a function as doing printf-style formatting, and generate warnings if the formatting string doesn't match the types. string_index is the parameter index of the format string, and first_to_check is the index of the "..." parameter. These indices are both base 1, and "this" counts as the first parameter if it's a method.
Definition at line 321 of file SYS_Types.h.
| #define SYS_PRIu64 SYS_PRI64_PREFIX "u" |
Definition at line 56 of file SYS_Types.h.
| #define SYS_PRIX64 SYS_PRI64_PREFIX "X" |
Definition at line 58 of file SYS_Types.h.
| #define SYS_PRIx64 SYS_PRI64_PREFIX "x" |
Definition at line 57 of file SYS_Types.h.
| #define SYS_SCANF_FPREAL "lg" |
Definition at line 199 of file SYS_Types.h.
| #define SYS_SIZEOF_FPREAL 8 |
Definition at line 190 of file SYS_Types.h.
| #define SYS_UINT16_MAX (65535) |
Definition at line 108 of file SYS_Types.h.
| #define SYS_UINT32_MAX (4294967295U) |
Definition at line 113 of file SYS_Types.h.
Definition at line 97 of file SYS_Types.h.
| #define SYS_UINT64_MAX (SYS_UINT64_C(18446744073709551615)) |
Definition at line 118 of file SYS_Types.h.
| #define SYS_UINT8_MAX (255) |
Definition at line 103 of file SYS_Types.h.
Definition at line 86 of file SYS_Types.h.
| typedef double fpreal |
Definition at line 187 of file SYS_Types.h.
| typedef unsigned short fpreal16 |
Definition at line 145 of file SYS_Types.h.
| typedef float fpreal32 |
Definition at line 138 of file SYS_Types.h.
| typedef double fpreal64 |
| typedef short int16 |
Definition at line 29 of file SYS_Types.h.
| typedef int int32 |
Definition at line 31 of file SYS_Types.h.
| typedef long long int64 |
Definition at line 77 of file SYS_Types.h.
| typedef signed char int8 |
Definition at line 27 of file SYS_Types.h.
| typedef union SYS_FPRealUnionT< fpreal64 > SYS_FPRealUnionD |
Definition at line 275 of file SYS_Types.h.
| typedef union SYS_FPRealUnionT< fpreal32 > SYS_FPRealUnionF |
Definition at line 274 of file SYS_Types.h.
| typedef union SYS_FPRealUnionT< fpreal > SYS_FPRealUnionR |
Definition at line 273 of file SYS_Types.h.
| typedef unsigned char uchar |
Definition at line 34 of file SYS_Types.h.
| typedef unsigned int uint |
Definition at line 36 of file SYS_Types.h.
| typedef unsigned short uint16 |
Definition at line 30 of file SYS_Types.h.
| typedef unsigned int uint32 |
Definition at line 32 of file SYS_Types.h.
| typedef unsigned long long uint64 |
Definition at line 78 of file SYS_Types.h.
| typedef unsigned char uint8 |
Definition at line 28 of file SYS_Types.h.
1.5.9