1 /* @(#)s_pow10.c 5.1 93/09/24 */
2 /* Modification from s_exp10.c Yaakov Selkowitz 2007. */
5 * ====================================================
6 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
8 * Developed at SunPro, a Sun Microsystems, Inc. business.
9 * Permission to use, copy, modify, and distribute this
10 * software is freely granted, provided that this notice
12 * ====================================================
17 <<pow10>>, <<pow10f>>---exponential
25 double pow10(double <[x]>);
26 float pow10f(float <[x]>);
37 <<pow10>> and <<pow10f>> calculate 10 ^ <[x]>, that is,
39 10 raised to the power <[x]>.
45 You can use the (non-ANSI) function <<matherr>> to specify
46 error handling for these functions.
49 On success, <<pow10>> and <<pow10f>> return the calculated value.
50 If the result underflows, the returned value is <<0>>. If the
51 result overflows, the returned value is <<HUGE_VAL>>. In
52 either case, <<errno>> is set to <<ERANGE>>.
55 <<pow10>> and <<pow10f>> are GNU extensions.
67 #ifndef _DOUBLE_IS_32BITS
70 double pow10(double x) /* wrapper pow10 */
72 double pow10(x) /* wrapper pow10 */
79 #endif /* defined(_DOUBLE_IS_32BITS) */