From 2ac7a78c3ca3cf96b8df0faed05e979ad8b76ee8 Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Tue, 4 Mar 2025 11:33:29 -0800 Subject: [PATCH] Disable `vrsqrt14ps`-usage when determinism is enabled --- Solver/Intrinsics.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Solver/Intrinsics.cs b/Solver/Intrinsics.cs index 3033c2f..14b3487 100644 --- a/Solver/Intrinsics.cs +++ b/Solver/Intrinsics.cs @@ -114,9 +114,11 @@ internal static class Intrinsics [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Vector256 ReciprocalSqrt(Vector256 data) { +#if !IS_DETERMINISTIC // Accurate to 14 bits if (Avx512F.VL.IsSupported) return Avx512F.VL.ReciprocalSqrt14(data); +#endif // Accurate to 12 bits if (Avx.IsSupported)