Exponential implementation. \param arg function argument \return function value stored in single-preicision
| 1370 | /// \param arg function argument |
| 1371 | /// \return function value stored in single-preicision |
| 1372 | static expr expm1(float arg) |
| 1373 | { |
| 1374 | #if HALF_ENABLE_CPP11_CMATH |
| 1375 | return expr(std::expm1(arg)); |
| 1376 | #else |
| 1377 | return expr(static_cast<float>(std::exp(static_cast<double>(arg))-1.0)); |
| 1378 | #endif |
| 1379 | } |
| 1380 | |
| 1381 | /// Binary exponential implementation. |
| 1382 | /// \param arg function argument |