Hyperbolic area sine implementation. \param arg function argument \return function value stored in single-preicision
| 1532 | /// \param arg function argument |
| 1533 | /// \return function value stored in single-preicision |
| 1534 | static expr asinh(float arg) |
| 1535 | { |
| 1536 | #if HALF_ENABLE_CPP11_CMATH |
| 1537 | return expr(std::asinh(arg)); |
| 1538 | #else |
| 1539 | return expr((arg==-std::numeric_limits<float>::infinity()) ? arg : static_cast<float>(std::log(arg+std::sqrt(arg*arg+1.0)))); |
| 1540 | #endif |
| 1541 | } |
| 1542 | |
| 1543 | /// Hyperbolic area cosine implementation. |
| 1544 | /// \param arg function argument |