MCPcopy
hub / github.com/google/brotli / doFillBitWindow

Method doFillBitWindow

java/org/brotli/dec/BitReader.java:128–140  ·  view source on GitHub ↗
(State s)

Source from the content-addressed store, hash-verified

126 }
127
128 static void doFillBitWindow(State s) {
129 if (BIT_READER_DEBUG != 0) {
130 assertAccumulatorHealthy(s);
131 }
132 if (BITNESS == 64) {
133 s.accumulator64 = ((long) s.intBuffer[s.halfOffset++] << HALF_BITNESS)
134 | Utils.shr64(s.accumulator64, HALF_BITNESS);
135 } else {
136 s.accumulator32 = ((int) s.shortBuffer[s.halfOffset++] << HALF_BITNESS)
137 | Utils.shr32(s.accumulator32, HALF_BITNESS);
138 }
139 s.bitOffset -= HALF_BITNESS;
140 }
141
142 static int peekBits(State s) {
143 if (BITNESS == 64) {

Callers 2

readManyBitsMethod · 0.95
prepareMethod · 0.95

Calls 3

shr64Method · 0.95
shr32Method · 0.95

Tested by

no test coverage detected