The macro names given in the following list must use the values specified. These constant expressions are suitable for use in #if preprocessing directives.
#define FLT_DIG
|
6
|
#define FLT_MANT_DIG
|
24
|
#define FLT_MAX_10_EXP
|
+38
|
#define FLT_MAX_EXP
|
+128
|
#define FLT_MIN_10_EXP
|
-37
|
#define FLT_MIN_EXP
|
-125
|
#define FLT_RADIX
|
2
|
#define FLT_MAX
|
0x1.fffffep127f
|
#define FLT_MIN
|
0x1.0p-126f
|
#define FLT_EPSILON
|
0x1.0p-23f
|
#define CHAR_BIT
|
8
|
#define CHAR_MAX
|
SCHAR_MAX
|
#define CHAR_MIN
|
SCHAR_MIN
|
#define INT_MAX
|
2147483647
|
#define INT_MIN |
(-2147483647- 1)
|
#define LONG_MAX |
0x7fffffffffffffffL
|
#define LONG_MIN |
(-0x7fffffffffffffffL- 1)
|
#define SCHAR_MAX |
127
|
#define SCHAR_MIN |
(-127 - 1)
|
#define SHRT_MAX |
32767
|
#define SHRT_MIN |
(-32767- 1)
|
#define UCHAR_MAX |
255
|
#define USHRT_MAX
|
65535
|
#define UINT_MAX |
0xffffffff
|
#define ULONG_MAX |
0xffffffffffffffffUL
|
The macro names given in the following list (available if the built-in math functions are extended with cl_khr_fp64) must use the values specified. These constant expressions are suitable for use in #if preprocessing directives.
#define DBL_DIG |
15
|
#define DBL_MANT_DIG |
53
|
#define DBL_MAX_10_EXP |
+308
|
#define DBL_MAX_EXP |
+1024
|
#define DBL_MIN_10_EXP |
-307
|
#define DBL_MIN_EXP |
-1021
|
#define DBL_MAX |
0x1.fffffffffffffp1023
|
#define DBL_MIN |
0x1.0p-1022
|
#define DBL_EPSILON |
0x1.0p-52
|
Math Functions, Symbolic Math Constants, Floating Point Pragma, Scalar Data Types, Vector Data Types, Reserved Data Types, Other Data Types