Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / mathfp / sf_exp2.c
blob43a9ae2df9ee9da3f0391516d63e9063643e4f04
1 /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
7 #include "fdlibm.h"
9 float
10 exp2f (float x)
12 return powf(2.0, x);
15 #ifdef _DOUBLE_IS_32BITS
17 double exp2 (double x)
19 return (double) exp2f ((float) x);
22 #endif /* _DOUBLE_IS_32BITS */