Commit graph

278 commits

Author SHA1 Message Date
Ahmet Inan
6b3bc5e534 added update_syndromes() helper 2018-09-27 10:33:47 +02:00
Ahmet Inan
8268ba3f85 moved code[j] out of the inner loop 2018-09-27 10:22:27 +02:00
Ahmet Inan
d504673812 added slb1() to clean up the mess 2018-09-24 12:25:25 +02:00
Ahmet Inan
c133ab2553 merge generator xor with shifting 2018-09-24 11:56:42 +02:00
Ahmet Inan
73e475ba76 align generator with parity bits to xor bytewise 2018-09-24 11:44:02 +02:00
Ahmet Inan
ca24063591 shift first then xor with generator 2018-09-24 10:54:26 +02:00
Ahmet Inan
c90e9a6a23 zero out parity bits bytewise 2018-09-23 21:40:56 +02:00
Ahmet Inan
e62dbb13c7 reverse generator order to match order of message 2018-09-23 21:37:46 +02:00
Ahmet Inan
4b7006651e also speed up the shifting of the mixed byte 2018-09-23 17:13:05 +02:00
Ahmet Inan
cfffac5010 speed up the shift a bit 2018-09-23 11:32:41 +02:00
Ahmet Inan
661f69efae test if minpoly is bigger than zero 2018-09-23 10:14:47 +02:00
Ahmet Inan
42ff499e23 use value_type 2018-09-22 19:56:52 +02:00
Ahmet Inan
537aff62a2 used bitman to help clean up the mess 2018-09-22 19:15:25 +02:00
Ahmet Inan
abe4edc419 added bit manipulation helpers 2018-09-22 19:13:37 +02:00
Ahmet Inan
1f354379d3 quick and dirty packed bits for the BCH encoder 2018-09-22 14:50:25 +02:00
Ahmet Inan
deb6ede15f keep non-bitpacked BCH decoder as reference 2018-09-22 10:52:55 +02:00
Ahmet Inan
de2ef34eb3 added support for packed bits in the BCH decoder 2018-09-21 19:48:09 +02:00
Ahmet Inan
2bf8d4ea84 use constants to avoid mistakes 2018-09-21 19:26:30 +02:00
Ahmet Inan
537390db43 output debug messages to stderr 2018-09-21 17:45:24 +02:00
Ahmet Inan
e2b160385e removed value_type interface on BCH to make room 2018-09-21 08:48:22 +02:00
Ahmet Inan
6099dc9849 removed redundant types and consts 2018-09-21 08:03:00 +02:00
Ahmet Inan
61b7c19e68 added Artin Schreier's imap acceleration 2018-09-20 20:50:06 +02:00
Ahmet Inan
a796788a12 fixed typo 2018-09-20 19:20:00 +02:00
Ahmet Inan
01db8f516e added Reed Solomon error correction
lifted from my FEC project:
https://github.com/xdsopl/FEC
2018-09-20 18:04:23 +02:00
Ahmet Inan
dab95db1bc added link to Évariste Galois' page on Wikipedia 2018-09-20 14:15:10 +02:00
Ahmet Inan
2a7fa2b7b7 added Galois field arithmetic 2018-09-20 14:06:57 +02:00
Ahmet Inan
266f299f86 added bitwise stream container 2018-09-20 09:11:33 +02:00
Ahmet Inan
ee79ff2b2d moved crc and xorshift from DSP to CODE repository 2018-09-20 08:36:45 +02:00