GR4_NUM_WIRINGS

Constant GR4_NUM_WIRINGS 

Source
pub const GR4_NUM_WIRINGS: usize = 22;
Expand description

The number of wirings for the galois ring GR4 multiplication GR4: GR(2^16, 4) is a Galois extension of Z/2^16Z over the monic polynomial x^4 - x - 1 The formula for multiplying two GR4 ring elements is: say a = a0, a1, a2, a3 and b = b0, b1, b2, b3 then a * b = [ a3b1 + a2b2 + a1b3 + a0b0, a3b2 + a2b3 + a3b1 + a2b2 + a1b3 + a1b0 + a0b1, a3b3 + a3b2 + a2b3 + a2b0 + a1b1 + a0b2, a3b3 + a3b0 + a2b1 + a1b2 + a0b3] Thus, the number of wirings for each coefficient is: sum(4, 7, 6, 5) = 22