mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-01-18 17:31:19 +01:00
Use proper float literals in SpecialFunctionsImpl.h.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user