2021-08-05 10:56:35 +00:00
|
|
|
#ifndef _INCLUDE_LDPC_H_
|
|
|
|
#define _INCLUDE_LDPC_H_
|
2018-11-07 13:50:55 +00:00
|
|
|
|
2021-08-05 10:56:35 +00:00
|
|
|
#include <stdint.h>
|
2018-11-14 15:06:32 +00:00
|
|
|
|
2021-08-05 10:56:35 +00:00
|
|
|
// codeword is 174 log-likelihoods.
|
|
|
|
// plain is a return value, 174 ints, to be 0 or 1.
|
|
|
|
// iters is how hard to try.
|
|
|
|
// ok == 87 means success.
|
2021-11-17 08:31:01 +00:00
|
|
|
void ldpc_decode(float codeword[], int max_iters, uint8_t plain[], int* ok);
|
2018-12-27 20:33:07 +00:00
|
|
|
|
2021-11-17 08:31:01 +00:00
|
|
|
void bp_decode(float codeword[], int max_iters, uint8_t plain[], int* ok);
|
2019-01-02 18:54:18 +00:00
|
|
|
|
2021-08-05 10:56:35 +00:00
|
|
|
#endif // _INCLUDE_LDPC_H_
|