2 /* @(#)w_exp2.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 <<exp2>>, <<exp2f>>---exponential, base 2
24 double exp2(double <[x]>);
25 float exp2f(float <[x]>);
28 <<exp2>> and <<exp2f>> calculate 2 ^ <[x]>, that is,
30 2 raised to the power <[x]>.
37 On success, <<exp2>> and <<exp2f>> return the calculated value.
38 If the result underflows, the returned value is <<0>>. If the
39 result overflows, the returned value is <<HUGE_VAL>>. In
40 either case, <<errno>> is set to <<ERANGE>>.
56 #ifndef _DOUBLE_IS_32BITS
59 double exp2(double x
) /* wrapper exp2 */
61 double exp2(x
) /* wrapper exp2 */
68 #endif /* defined(_DOUBLE_IS_32BITS) */
69 #endif /* __OBSOLETE_MATH */