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