MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / bitread_fix

Function bitread_fix

Source/Amiga/dernc.cpp:259–264  ·  view source on GitHub ↗

* Fixes up a bit stream after literals have been read out of the * data stream. */

Source from the content-addressed store, hash-verified

257 * data stream.
258 */
259static void bitread_fix (bit_stream *bs, unsigned char **p) {
260 bs->bitcount -= 16;
261 bs->bitbuf &= (1<<bs->bitcount)-1; /* remove the top 16 bits */
262 bs->bitbuf |= (lword(*p)<<bs->bitcount);/* replace with what's at *p */
263 bs->bitcount += 16;
264}
265
266/*
267 * Returns some bits.

Callers 1

rnc_unpackFunction · 0.85

Calls 1

lwordFunction · 0.85

Tested by

no test coverage detected