poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / log2.texi
blob868dfcbd909a6cd686bf906d21686bd40dc17da8
1 @node log2
2 @section @code{log2}
3 @findex log2
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/log2.html}
7 Gnulib module: log2 or log2-ieee
9 Portability problems fixed by either Gnulib module @code{log2} or @code{log2-ieee}:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, older IRIX 6.5,
14 Solaris 9, MSVC 9, Android 4.2.
15 @item
16 This function is not declared on some platforms:
17 IRIX 6.5.
18 @item
19 This function is only provided as a macro on some platforms:
20 Cygwin 1.5.x.
21 @item
22 This function returns slightly wrong values for exact powers of 2 on some platforms:
23 Cygwin 1.7.9.
24 @end itemize
26 Portability problems fixed by Gnulib module @code{log2-ieee}:
27 @itemize
28 @item
29 This function returns a wrong value for a negative argument on some platforms:
30 NetBSD 5.1, Solaris 10/x86_64.
31 @end itemize
33 Portability problems not fixed by Gnulib:
34 @itemize
35 @end itemize