]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/generic/w_log2.c
6 #include "math_private.h"
9 __log2 (double x
) /* wrapper log2 */
12 return __ieee754_log2 (x
);
15 z
= __ieee754_log2 (x
);
16 if (_LIB_VERSION
== _IEEE_
|| __isnan (x
)) return z
;
20 return __kernel_standard (x
, x
, 48); /* log2 (0) */
22 return __kernel_standard (x
, x
, 49); /* log2 (x < 0) */
28 weak_alias (__log2
, log2
)
30 strong_alias (__log2
, __log2l
)
31 weak_alias (__log2
, log2l
)