Module long

Source
Expand description

Encoding and decoding of the (36, 20, 17) code.

Functionsยง

decode
Try to decode the given 36-hexbit word to the nearest codeword, correcting up to 8 hexbit errors (up to 48 bit errors.)
encode
Calculate the 16 parity hexbits for the first 20 data hexbits in the given buffer, placing the parity hexbits at the end of the buffer.