17#ifndef ___FEC_ECC_H___
18#define ___FEC_ECC_H___
30#define FEC_PARAMS(roots) \
41 return (x / y) + (x % y > 0 ? 1 : 0);
53 return (offset / rsn) + (offset % rsn) * rounds *
FEC_BLOCKSIZE;
uint64_t fec_div_round_up(uint64_t x, uint64_t y)
Definition: ecc.h:39
#define FEC_RSM
Definition: ecc.h:27
uint64_t fec_ecc_interleave(uint64_t offset, int rsn, uint64_t rounds)
Definition: ecc.h:51
uint64_t fec_round_up(uint64_t x, uint64_t y)
Definition: ecc.h:45
uint64_t fec_ecc_get_size(uint64_t file_size, int roots)
Definition: ecc.h:57
uint32_t roots
Definition: io.h:3
#define FEC_BLOCKSIZE
Definition: io.h:38