1 /* wf_exp2.c -- float version of w_exp2.c.
2 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
3 */
4
5 /*
6 * ====================================================
7 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
8 *
9 * Developed at SunPro, a Sun Microsystems, Inc. business.
10 * Permission to use, copy, modify, and distribute this
11 * software is freely granted, provided that this notice
12 * is preserved.
13 * ====================================================
14 */
15
16 /*
17 * wrapper exp2f(x)
18 */
19
20 #include "fdlibm.h"
21 #if __OBSOLETE_MATH_FLOAT
22 #include <errno.h>
23 #include <math.h>
24
25 float __inhibit_new_builtin_calls
exp2f(float x)26 exp2f(float x) /* wrapper exp2f */
27 {
28 return _powf(2.0, x);
29 }
30
31 _MATH_ALIAS_f_f(exp2)
32
33 #else
34 #include "../common/sf_exp2.c"
35 #endif /* __OBSOLETE_MATH_FLOAT */
36