Print this page
11210 libm should be cstyle(1ONBLD) clean

*** 20,29 **** --- 20,30 ---- */ /* * Copyright 2011 Nexenta Systems, Inc. All rights reserved. */ + /* * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */
*** 42,66 **** #pragma weak __log2l = log2l #include "libm.h" #include "longdouble.h" ! static const long double ! zero = 0.0L, half = 0.5L, one = 1.0L, invln2 = 1.442695040888963407359924681001892137427e+0000L; long double ! log2l(long double x) { int n; if (x == zero || !finitel(x)) return (logl(x)); n = ilogbl(x); if (n < 0) n += 1; x = scalbnl(x, -n); if (x == half) return (n - one); return (n + invln2 * logl(x)); } --- 43,72 ---- #pragma weak __log2l = log2l #include "libm.h" #include "longdouble.h" ! static const long double zero = 0.0L, half = 0.5L, one = 1.0L, invln2 = 1.442695040888963407359924681001892137427e+0000L; long double ! log2l(long double x) ! { int n; if (x == zero || !finitel(x)) return (logl(x)); + n = ilogbl(x); + if (n < 0) n += 1; + x = scalbnl(x, -n); + if (x == half) return (n - one); + return (n + invln2 * logl(x)); }