Hypotenuse implementation. \param x first argument \param y second argument \return function value stored in single-preicision
| 1862 | /// \param y second argument |
| 1863 | /// \return function value stored in single-preicision |
| 1864 | static expr hypot(float x, float y) |
| 1865 | { |
| 1866 | #if HALF_ENABLE_CPP11_CMATH |
| 1867 | return expr(std::hypot(x, y)); |
| 1868 | #else |
| 1869 | return expr((builtin_isinf(x) || builtin_isinf(y)) |
| 1870 | ? std::numeric_limits<float>::infinity() |
| 1871 | : static_cast<float>(std::sqrt(static_cast<double>(x) * x + static_cast<double>(y) * y))); |
| 1872 | #endif |
| 1873 | } |
| 1874 | |
| 1875 | /// Power implementation. |
| 1876 | /// \param base value to exponentiate |
nothing calls this directly
no test coverage detected