mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
we can now use TYPE, as degree is always smaller
This commit is contained in:
parent
595cf80cc5
commit
4a24450351
1 changed files with 3 additions and 3 deletions
|
|
@ -395,9 +395,9 @@ GaloisFieldReference<M, POLY, TYPE> rcp(GaloisFieldReference<M, POLY, TYPE> 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue