2 /* @(#)w_log10.c 5.1 93/09/24 */
4 * ====================================================
5 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
7 * Developed at SunPro, a Sun Microsystems, Inc. business.
8 * Permission to use, copy, modify, and distribute this
9 * software is freely granted, provided that this notice
11 * ====================================================
16 <<log10>>, <<log10f>>---base 10 logarithms
25 double log10(double <[x]>);
26 float log10f(float <[x]>);
29 <<log10>> returns the base 10 logarithm of <[x]>.
30 It is implemented as <<log(<[x]>) / log(10)>>.
32 <<log10f>> is identical, save that it takes and returns <<float>> values.
35 <<log10>> and <<log10f>> return the calculated value.
37 See the description of <<log>> for information on errors.
40 <<log10>> is ANSI C. <<log10f>> is an extension.
51 #ifndef _DOUBLE_IS_32BITS
54 double log10(double x
) /* wrapper log10 */
56 double log10(x
) /* wrapper log10 */
61 return __ieee754_log10(x
);
64 z
= __ieee754_log10(x
);
65 if(_LIB_VERSION
== _IEEE_
|| isnan(x
)) return z
;
81 #endif /* defined(_DOUBLE_IS_32BITS) */