Rev 4872 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4349 | Serge | 1 | /* sf_exp10.c -- float version of s_exp10.c. |
2 | * Modification of sf_exp2.c by Yaakov Selkowitz 2007. |
||
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 exp10f(x) |
||
18 | */ |
||
19 | |||
20 | #undef exp10f |
||
21 | #include "fdlibm.h" |
||
22 | #include |
||
23 | #include |
||
24 | |||
25 | #ifdef __STDC__ |
||
26 | float exp10f(float x) /* wrapper exp10f */ |
||
27 | #else |
||
28 | float exp10f(x) /* wrapper exp10f */ |
||
29 | float x; |
||
30 | #endif |
||
31 | { |
||
32 | return powf(10.0, x); |
||
33 | } |
||
34 | |||
35 | #ifdef _DOUBLE_IS_32BITS |
||
36 | |||
37 | #ifdef __STDC__ |
||
38 | double exp10(double x) |
||
39 | #else |
||
40 | double exp10(x) |
||
41 | double x; |
||
42 | #endif |
||
43 | { |
||
44 | return (double) exp10f((float) x); |
||
45 | } |
||
46 | |||
47 | #endif /* defined(_DOUBLE_IS_32BITS) */ |