|
Krita Source Code Documentation
|
#include <vc_extra_math.h>
Static Public Member Functions | |
| template<typename A > | |
| static xsimd::batch< float, A > | erf (const xsimd::batch< float, A > x) |
Definition at line 15 of file vc_extra_math.h.
|
inlinestatic |
Our version of erf() is about 10% faster than the version in xsimd::erf(), because we require less precision. We don't need too much of precision to calculate 8-bit masks anyway.
Definition at line 21 of file vc_extra_math.h.
References p, xsimd::set_one(), xsimd::set_zero(), and sign().