From 4a24450351f716423259c23c75ec52111ef03ab3 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Fri, 21 Apr 2023 09:06:40 +0200 Subject: [PATCH] we can now use TYPE, as degree is always smaller --- galois_field.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/galois_field.hh b/galois_field.hh index b54229c..eb2bb7a 100644 --- a/galois_field.hh +++ b/galois_field.hh @@ -395,9 +395,9 @@ GaloisFieldReference rcp(GaloisFieldReference a) #if 1 if (a.v == 1) return a; - uint32_t newr = POLY, r = a.v; - uint32_t newt = 0, t = 1; - auto degree = [](uint32_t a) { + TYPE newr = a.P, r = a.v; + TYPE newt = 0, t = 1; + auto degree = [](TYPE a) { int d = 0; while (a >>= 1) ++d;