| 1 |
/** |
| 2 |
* This file has no copyright assigned and is placed in the Public Domain. |
| 3 |
* This file is part of the mingw-w64 runtime package. |
| 4 |
* No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 |
*/ |
| 6 |
|
| 7 |
#include <math.h> |
| 8 |
|
| 9 |
double scalbn(double x, int exp) |
| 10 |
{ |
| 11 |
return x * exp2(exp); |
| 12 |
} |
| 13 |
|
| 14 |
float scalbnf(float x, int exp) |
| 15 |
{ |
| 16 |
return x * exp2f(exp); |
| 17 |
} |
| 18 |
|
| 19 |
long double scalbnl(long double x, int exp) |
| 20 |
{ |
| 21 |
return scalbn(x, exp); |
| 22 |
} |
| 23 |
|
| 24 |
double scalbln(double x, long exp) |
| 25 |
{ |
| 26 |
return x * exp2(exp); |
| 27 |
} |
| 28 |
|
| 29 |
float scalblnf(float x, long exp) |
| 30 |
{ |
| 31 |
return x * exp2f(exp); |
| 32 |
} |
| 33 |
|
| 34 |
long double scalblnl(long double x, long exp) |
| 35 |
{ |
| 36 |
return scalbln(x, exp); |
| 37 |
} |