math: Provide FP_ILOGB0 and FP_ILOGBNAN.
[gnulib.git] / doc / posix-headers / math.texi
1 @node math.h
2 @section @file{math.h}
3
4 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/math.h.html}
5
6 Gnulib module: math
7
8 Portability problems fixed by Gnulib:
9 @itemize
10 @item
11 The conversion from @code{int} to @code{long double} in incorrect on some
12 platforms:
13 glibc 2.7 on Linux/SPARC64.
14
15 @item
16 The macro @code{NAN} is not defined on some platforms:
17 OpenBSD 4.0, AIX 5.1, IRIX 6.5, OSF/1 5.1.
18
19 @item
20 The macro @code{NAN} is not exposed outside of C99 compilation on some
21 platforms:
22 glibc.
23
24 @item
25 The macros @code{NAN} and @code{HUGE_VAL} expand to a function address
26 rather than a floating point constant on some platforms:
27 Solaris 10.
28
29 @item
30 The macros @code{HUGE_VALF} and @code{HUGE_VALL} are not defined on some
31 platforms:
32 glibc/HPPA, glibc/SPARC, AIX 5.1, IRIX 6.5, Solaris 9, MSVC 9.
33
34 @item
35 The macros @code{FP_ILOGB0} and @code{FP_ILOGBNAN} are not defined on some
36 platforms:
37 NetBSD 5.1, AIX 5.1, IRIX 6.5, Solaris 9, MSVC 9.
38 @end itemize
39
40 Portability problems not fixed by Gnulib:
41 @itemize
42 @item
43 @code{NAN} is not a compile time constant with some compilers:
44 OSF/1 with Compaq (ex-DEC) C 6.4.
45 @item
46 The macro or variable @code{math_errhandling} is not defined on some platforms:
47 glibc 2.11, OpenBSD 4.9, NetBSD 5.1, UP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin 1.7.9, mingw, MSVC 9.
48 @end itemize