mingw-w64-crt/math/arm-common/expm1f.c
raw| 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 | float expm1f(float x) |
| 10 | { |
| 11 | // Intentionally using double version of exp() here in the float version of |
| 12 | // expm1, to preserve as much accuracy as possible in the intermediate |
| 13 | // result. |
| 14 | return exp(x) - 1.0; |
| 15 | } |