]> sourceware.org Git - newlib-cygwin.git/blob - newlib/libm/mathfp/sf_exp2.c
* libm/common/s_fdim.c: New file.
[newlib-cygwin.git] / newlib / libm / mathfp / sf_exp2.c
1 /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
2 *
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
6
7 #include "fdlibm.h"
8
9 float
10 _DEFUN (exp2f, (float),
11 float x)
12 {
13 return powf(2.0, x);
14 }
15
16 #ifdef _DOUBLE_IS_32BITS
17
18 double exp2 (double x)
19 {
20 return (double) exp2f ((float) x);
21 }
22
23 #endif /* _DOUBLE_IS_32BITS */
This page took 0.035126 seconds and 5 git commands to generate.