Disable vrsqrt14ps-usage when determinism is enabled

This commit is contained in:
Wunkolo
2025-03-04 11:33:29 -08:00
parent 05ec427fec
commit 2ac7a78c3c
+2
View File
@@ -114,9 +114,11 @@ internal static class Intrinsics
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector256<float> ReciprocalSqrt(Vector256<float> data) public static Vector256<float> ReciprocalSqrt(Vector256<float> data)
{ {
#if !IS_DETERMINISTIC
// Accurate to 14 bits // Accurate to 14 bits
if (Avx512F.VL.IsSupported) if (Avx512F.VL.IsSupported)
return Avx512F.VL.ReciprocalSqrt14(data); return Avx512F.VL.ReciprocalSqrt14(data);
#endif
// Accurate to 12 bits // Accurate to 12 bits
if (Avx.IsSupported) if (Avx.IsSupported)