MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / eccNextBit

Function eccNextBit

arch/micropolis/decoder.cc:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static uint8_t eccNextBit(uint32_t ecc, uint8_t data_bit)
70{
71 // This is 0x81932080 which is 0x0104C981 with reversed bits
72 return b(ecc, 7) ^ b(ecc, 13) ^ b(ecc, 16) ^ b(ecc, 17) ^ b(ecc, 20) ^
73 b(ecc, 23) ^ b(ecc, 24) ^ b(ecc, 31) ^ data_bit;
74}
75
76uint32_t vectorGraphicEcc(const Bytes& bytes)
77{

Callers 1

vectorGraphicEccFunction · 0.85

Calls 1

bFunction · 0.85

Tested by

no test coverage detected