mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-23 21:34:30 +08:00
Use proper float literals in SpecialFunctionsImpl.h.
This commit is contained in:
parent
b5bef9dcb0
commit
abeba85356
@ -323,7 +323,7 @@ EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T generic_fast_erfc<float>::run(const T& x
|
||||
const T num = ppolevl<T, 3>::run(q2, gamma);
|
||||
const T denom = pmul(x, ppolevl<T, 4>::run(q2, delta));
|
||||
const T r = pdiv(num, denom);
|
||||
const T maybe_two = pselect(pcmp_lt(x, pset1<T>(0.0)), pset1<T>(2.0), pset1<T>(0.0));
|
||||
const T maybe_two = pselect(pcmp_lt(x, pset1<T>(0.0f)), pset1<T>(2.0f), pset1<T>(0.0f));
|
||||
const T erfc_large = pmadd(z, r, maybe_two);
|
||||
return pselect(x_abs_gt_one_mask, erfc_large, erfc_small);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user