From a67039bebd879cc43692d5fb1276c292faf07ed2 Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Mon, 1 Aug 2022 17:23:13 +0300 Subject: [PATCH] Fix deterministic tan See https://github.com/shibatch/sleef/pull/267 --- src/f64x/u35_impl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/f64x/u35_impl.rs b/src/f64x/u35_impl.rs index b197066..940a8c1 100644 --- a/src/f64x/u35_impl.rs +++ b/src/f64x/u35_impl.rs @@ -619,7 +619,7 @@ macro_rules! impl_math_f64_u35 { ql = Mx::from_cast(g).select(ql, dql.roundi()); s = g.select(s, u); - let g = d.abs().lt(F64x::splat(1e+7)); + let g = d.abs().lt(F64x::splat(1e+6)); if !g.all() { let (ddidd, ddii) = rempi(d);