Binary exponential implementation. \param arg function argument \return function value stored in single-preicision
| 1395 | /// \param arg function argument |
| 1396 | /// \return function value stored in single-preicision |
| 1397 | static expr exp2(float arg) |
| 1398 | { |
| 1399 | #if HALF_ENABLE_CPP11_CMATH |
| 1400 | return expr(std::exp2(arg)); |
| 1401 | #else |
| 1402 | return expr(static_cast<float>(std::exp(arg*0.69314718055994530941723212145818))); |
| 1403 | #endif |
| 1404 | } |
| 1405 | |
| 1406 | /// Logarithm implementation. |
| 1407 | /// \param arg function argument |