MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / flip_bit

Function flip_bit

test/bzip2_test.c:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61};
62
63void flip_bit ( int bit )
64{
65 int byteno = bit / 8;
66 int bitno = bit % 8;
67 uchar mask = 1 << bitno;
68 //fprintf ( stderr, "(byte %d bit %d mask %d)",
69 // byteno, bitno, (int)mask );
70 zbuf[byteno] ^= mask;
71}
72
73int main ( int argc, char** argv )
74{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected