22 for (
int b = 0; b < 8; ++b)
23 ss->
bits[b] = (ss->
bits[b] < 0) ? -127 : 127;
40 return 128 - ss.
bits[bit];
45 return ((ss >> bit) & 1) ? 255 : 0;
65 uint16_t best = 65535, best2 = 65535;
74 else if (fss->
dists2[s] < best2)
86 for (
int b = 0; b < 8; ++b)
88 float v = (1.0f - fss->
p[b]) / (fss->
p[b] + 1e-6);
static const char * names[]
static const int MAX_SYMBOLS
void to_softsymb(const full_ss *fss, hard_ss *ss)
void softsymb_harden(llr_ss *ss)
uint8_t softsymb_to_dump(const llr_ss &ss, int bit)
uint16_t dists2[MAX_SYMBOLS]