Error function implementation. \param arg function argument \return function value stored in single-preicision
| 2005 | /// \param arg function argument |
| 2006 | /// \return function value stored in single-preicision |
| 2007 | static expr erf(float arg) |
| 2008 | { |
| 2009 | #if HALF_ENABLE_CPP11_CMATH |
| 2010 | return expr(std::erf(arg)); |
| 2011 | #else |
| 2012 | return expr(static_cast<float>(erf(static_cast<double>(arg)))); |
| 2013 | #endif |
| 2014 | } |
| 2015 | |
| 2016 | /// Complementary implementation. |
| 2017 | /// \param arg function argument |
nothing calls this directly
no test coverage detected