From ff5c2f19439b77c0cd9064c1682dcf2a1d8b1c1f Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Mon, 28 Nov 2022 13:45:50 +0100 Subject: [PATCH] Disable broken Leopard GF8 GFNI code (#229) GFNI is broken on Leopard GF8 (enabled with `WithLeopardGF(true)`). Disable it until fixed. Regression in v1.11.2 --- galois_amd64.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/galois_amd64.go b/galois_amd64.go index 120ccaee..ae71db1d 100644 --- a/galois_amd64.go +++ b/galois_amd64.go @@ -233,7 +233,7 @@ func ifftDIT48(work [][]byte, dist int, log_m01, log_m23, log_m02 ffe8, o *optio return } - if o.useGFNI { + if false && o.useGFNI { // Note that these currently require that length is multiple of 64. t01 := gf2p811dMulMatrices[log_m01] t23 := gf2p811dMulMatrices[log_m23] @@ -388,7 +388,7 @@ func fftDIT48(work [][]byte, dist int, log_m01, log_m23, log_m02 ffe8, o *option return } - if o.useGFNI { + if false && o.useGFNI { t01 := gf2p811dMulMatrices[log_m01] t23 := gf2p811dMulMatrices[log_m23] t02 := gf2p811dMulMatrices[log_m02]