Exponential implementation. \param arg function argument \return function value stored in single-preicision
| 1383 | /// \param arg function argument |
| 1384 | /// \return function value stored in single-preicision |
| 1385 | static expr expm1(float arg) |
| 1386 | { |
| 1387 | #if HALF_ENABLE_CPP11_CMATH |
| 1388 | return expr(std::expm1(arg)); |
| 1389 | #else |
| 1390 | return expr(static_cast<float>(std::exp(static_cast<double>(arg))-1.0)); |
| 1391 | #endif |
| 1392 | } |
| 1393 | |
| 1394 | /// Binary exponential implementation. |
| 1395 | /// \param arg function argument |