Error function implementation. \param arg function argument \return function value stored in single-preicision
| 1568 | /// \param arg function argument |
| 1569 | /// \return function value stored in single-preicision |
| 1570 | static expr erf(float arg) |
| 1571 | { |
| 1572 | #if HALF_ENABLE_CPP11_CMATH |
| 1573 | return expr(std::erf(arg)); |
| 1574 | #else |
| 1575 | return expr(static_cast<float>(erf(static_cast<double>(arg)))); |
| 1576 | #endif |
| 1577 | } |
| 1578 | |
| 1579 | /// Complementary implementation. |
| 1580 | /// \param arg function argument |
nothing calls this directly
no test coverage detected