Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/waterbox/libc/includes/float.h
2 views
1
/* Characteristics of floating types <float.h>
2
3
This file is part of the Public Domain C Library (PDCLib).
4
Permission is granted to use, modify, and / or redistribute at will.
5
*/
6
7
#ifndef _PDCLIB_FLOAT_H
8
#define _PDCLIB_FLOAT_H _PDCLIB_FLOAT_H
9
#include "_PDCLIB_float.h"
10
11
#define FLT_ROUNDS _PDCLIB_FLT_ROUNDS
12
#define FLT_EVAL_METHOD _PDCLIB_FLT_EVAL_METHOD
13
#define DECIMAL_DIG _PDCLIB_DECIMAL_DIG
14
15
/* Radix of exponent representation */
16
#define FLT_RADIX _PDCLIB_FLT_RADIX
17
18
/* Number of base-FLT_RADIX digits in the significand of a float */
19
#define FLT_MANT_DIG _PDCLIB_FLT_MANT_DIG
20
21
/* Number of decimal digits of precision in a float */
22
#define FLT_DIG _PDCLIB_FLT_DIG
23
24
/* Difference between 1.0 and the minimum float greater than 1.0 */
25
#define FLT_EPSILON _PDCLIB_FLT_EPSILON
26
27
/* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
28
#define FLT_MIN_EXP _PDCLIB_FLT_MIN_EXP
29
30
/* Minimum normalised float */
31
#define FLT_MIN _PDCLIB_FLT_MIN
32
33
/* Minimum int x such that 10**x is a normalised float */
34
#define FLT_MIN_10_EXP _PDCLIB_FLT_MIN_10_EXP
35
36
/* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
37
#define FLT_MAX_EXP _PDCLIB_FLT_MAX_EXP
38
39
/* Maximum float */
40
#define FLT_MAX _PDCLIB_FLT_MAX
41
42
/* Maximum int x such that 10**x is a representable float */
43
#define FLT_MAX_10_EXP _PDCLIB_FLT_MAX_10_EXP
44
45
46
/* Number of base-FLT_RADIX digits in the significand of a double */
47
#define DBL_MANT_DIG _PDCLIB_DBL_MANT_DIG
48
49
/* Number of decimal digits of precision in a double */
50
#define DBL_DIG _PDCLIB_DBL_DIG
51
52
/* Difference between 1.0 and the minimum double greater than 1.0 */
53
#define DBL_EPSILON _PDCLIB_DBL_EPSILON
54
55
/* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
56
#define DBL_MIN_EXP _PDCLIB_DBL_MIN_EXP
57
58
/* Minimum normalised double */
59
#define DBL_MIN _PDCLIB_DBL_MIN
60
61
/* Minimum int x such that 10**x is a normalised double */
62
#define DBL_MIN_10_EXP _PDCLIB_DBL_MIN_10_EXP
63
64
/* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
65
#define DBL_MAX_EXP _PDCLIB_DBL_MAX_EXP
66
67
/* Maximum double */
68
#define DBL_MAX _PDCLIB_DBL_MAX
69
70
/* Maximum int x such that 10**x is a representable double */
71
#define DBL_MAX_10_EXP _PDCLIB_DBL_MAX_10_EXP
72
73
74
/* Number of base-FLT_RADIX digits in the significand of a long double */
75
#define LDBL_MANT_DIG _PDCLIB_LDBL_MANT_DIG
76
77
/* Number of decimal digits of precision in a long double */
78
#define LDBL_DIG _PDCLIB_LDBL_DIG
79
80
/* Difference between 1.0 and the minimum long double greater than 1.0 */
81
#define LDBL_EPSILON _PDCLIB_LDBL_EPSILON
82
83
/* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
84
#define LDBL_MIN_EXP _PDCLIB_LDBL_MIN_EXP
85
86
/* Minimum normalised long double */
87
#define LDBL_MIN _PDCLIB_LDBL_MIN
88
89
/* Minimum int x such that 10**x is a normalised long double */
90
#define LDBL_MIN_10_EXP _PDCLIB_LDBL_MIN_10_EXP
91
92
/* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
93
#define LDBL_MAX_EXP _PDCLIB_LDBL_MAX_EXP
94
95
/* Maximum long double */
96
#define LDBL_MAX _PDCLIB_LDBL_MAX
97
98
/* Maximum int x such that 10**x is a representable long double */
99
#define LDBL_MAX_10_EXP _PDCLIB_LDBL_MAX_10_EXP
100
101
#endif
102
103