MCPcopy Create free account
hub / github.com/Santroller/Santroller / revbits

Function revbits

include/utils.h:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54inline uint8_t revbits(uint8_t b)
55{
56 b = (b & 0b11110000) >> 4 | (b & 0b00001111) << 4;
57 b = (b & 0b11001100) >> 2 | (b & 0b00110011) << 2;
58 b = (b & 0b10101010) >> 1 | (b & 0b01010101) << 1;
59 return b;
60}

Callers 1

transferMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected