diff options
| author | Yuval Adam <_@yuv.al> | 2019-03-18 22:33:01 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2019-03-18 22:33:01 +0200 |
| commit | c0473e14960b354d2773304c9aa435b3d373300e (patch) | |
| tree | d5fc71ba9fa2e3f69c72bc257111fd64df628da9 | |
| parent | a8b24243e19b5e80373940931fbfb0dea5e8eb8d (diff) | |
Add BCH struct
| -rw-r--r-- | src/lib.rs | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1,6 +1,24 @@ +pub struct GfPoly { -pub struct BCH { +} + +pub struct BCH<'a> { m: u32, + n: u32, + t: u32, + ecc_bits: u32, + ecc_bytes: u32, + + a_pow_tab: u16, + a_log_tab: u16, + mod8_tab: u32, + ecc_buf: u32, + ecc_buf2: u32, + xi_tab: u32, + syn: u32, + cache: u32, + elp: GfPoly, + poly_2t: GfPoly, } impl BCH { |
