Commit graph

16 commits

Author SHA1 Message Date
Ahmet Inan
2944a44b28 time to embrace #pragma once 2020-08-05 10:43:49 +02:00
Ahmet Inan
d196187187 use const on args to improve readability 2020-08-05 10:08:02 +02:00
Ahmet Inan
2ae6aa734c nice catch by the regression test :) 2018-09-28 10:57:17 +02:00
Ahmet Inan
f912be0335 use constants to avoid mistakes 2018-09-28 10:09:18 +02:00
Ahmet Inan
ab44dc4042 return -1 if location is before data 2018-09-28 08:44:45 +02:00
Ahmet Inan
62819a5376 added data_len argument for shortened codes 2018-09-27 18:29:13 +02:00
Ahmet Inan
f545b5d6ab handle data and parity seperate in both BCH and RS 2018-09-27 13:55:54 +02:00
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
537aff62a2 used bitman to help clean up the mess 2018-09-22 19:15: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
e2b160385e removed value_type interface on BCH to make room 2018-09-21 08:48:22 +02:00
Ahmet Inan
61b7c19e68 added Artin Schreier's imap acceleration 2018-09-20 20:50:06 +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