Error function implementation. \param arg function argument \return function value stored in single-preicision
| 1555 | /// \param arg function argument |
| 1556 | /// \return function value stored in single-preicision |
| 1557 | static expr erf(float arg) |
| 1558 | { |
| 1559 | #if HALF_ENABLE_CPP11_CMATH |
| 1560 | return expr(std::erf(arg)); |
| 1561 | #else |
| 1562 | return expr(static_cast<float>(erf(static_cast<double>(arg)))); |
| 1563 | #endif |
| 1564 | } |
| 1565 | |
| 1566 | /// Complementary implementation. |
| 1567 | /// \param arg function argument |
nothing calls this directly
no test coverage detected