Android-cuttlefish cvd tool
Macros | Functions
ecc.h File Reference
#include <fec/io.h>
Include dependency graph for ecc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FEC_RSM   255
 
#define FEC_PARAMS(roots)
 

Functions

uint64_t fec_div_round_up (uint64_t x, uint64_t y)
 
uint64_t fec_round_up (uint64_t x, uint64_t y)
 
uint64_t fec_ecc_interleave (uint64_t offset, int rsn, uint64_t rounds)
 
uint64_t fec_ecc_get_size (uint64_t file_size, int roots)
 

Macro Definition Documentation

◆ FEC_PARAMS

#define FEC_PARAMS (   roots)
Value:
8, /* symbol size in bits */ \
0x11d, /* field generator polynomial coefficients */ \
0, /* first root of the generator */ \
1, /* primitive element to generate polynomial roots */ \
(roots), /* polynomial degree (number of roots) */ \
0 /* padding bytes at the front of shortened block */
uint32_t roots
Definition: io.h:3

◆ FEC_RSM

#define FEC_RSM   255

Function Documentation

◆ fec_div_round_up()

uint64_t fec_div_round_up ( uint64_t  x,
uint64_t  y 
)
inline

◆ fec_ecc_get_size()

uint64_t fec_ecc_get_size ( uint64_t  file_size,
int  roots 
)
inline

◆ fec_ecc_interleave()

uint64_t fec_ecc_interleave ( uint64_t  offset,
int  rsn,
uint64_t  rounds 
)
inline

◆ fec_round_up()

uint64_t fec_round_up ( uint64_t  x,
uint64_t  y 
)
inline