repo.or.cz
/
libc-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
functional: add mntent test
[libc-test.git]
/
src
/
api
/
float.c
blob
2a4a7c7750f84571679f7e3196f9dabbe2530df6
1
#include <float.h>
2
#define I(t,e) {t x[sizeof(t)==sizeof(e)] = {e};}
3
#define C(n) switch(n){case n:;}
4
#define D(n) {long double d = n;}
5
static void
f
()
6
{
7
I
(
int
,
FLT_ROUNDS
)
8
C
(
FLT_EVAL_METHOD
)
9
C
(
FLT_RADIX
)
10
C
(
FLT_MANT_DIG
)
11
C
(
DBL_MANT_DIG
)
12
C
(
LDBL_MANT_DIG
)
13
C
(
DECIMAL_DIG
)
14
C
(
FLT_DIG
)
15
C
(
DBL_DIG
)
16
C
(
LDBL_DIG
)
17
C
(
FLT_MIN_EXP
)
18
C
(
DBL_MIN_EXP
)
19
C
(
LDBL_MIN_EXP
)
20
C
(
FLT_MIN_10_EXP
)
21
C
(
DBL_MIN_10_EXP
)
22
C
(
LDBL_MIN_10_EXP
)
23
C
(
FLT_MAX_EXP
)
24
C
(
DBL_MAX_EXP
)
25
C
(
LDBL_MAX_EXP
)
26
C
(
FLT_MAX_10_EXP
)
27
C
(
DBL_MAX_10_EXP
)
28
C
(
LDBL_MAX_10_EXP
)
29
D
(
FLT_MAX
)
30
D
(
DBL_MAX
)
31
D
(
LDBL_MAX
)
32
D
(
FLT_EPSILON
)
33
D
(
DBL_EPSILON
)
34
D
(
LDBL_EPSILON
)
35
D
(
FLT_MIN
)
36
D
(
DBL_MIN
)
37
D
(
LDBL_MIN
)
38
}
39