Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / common / sf_pow10.c
blob116afac7e6142a84a46f43d0ac35be5ddfe37219
1 /* sf_pow10.c -- float version of s_pow10.c.
2 * Modification of sf_pow10.c by Yaakov Selkowitz 2007.
3 */
5 /*
6 * ====================================================
7 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
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 * ====================================================
16 /*
17 * wrapper pow10f(x)
20 #undef pow10f
21 #include "fdlibm.h"
22 #include <errno.h>
23 #include <math.h>
25 #ifdef __STDC__
26 float pow10f(float x) /* wrapper pow10f */
27 #else
28 float pow10f(x) /* wrapper pow10f */
29 float x;
30 #endif
32 return powf(10.0, x);
35 #ifdef _DOUBLE_IS_32BITS
37 #ifdef __STDC__
38 double pow10(double x)
39 #else
40 double pow10(x)
41 double x;
42 #endif
44 return (double) pow10f((float) x);
47 #endif /* defined(_DOUBLE_IS_32BITS) */