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

Method fillBitWindow

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

Source from the content-addressed store, hash-verified

109 }
110
111 static void fillBitWindow(State s) {
112 if (BIT_READER_DEBUG != 0) {
113 assertAccumulatorHealthy(s);
114 }
115 if (s.bitOffset >= HALF_BITNESS) {
116 // Same as doFillBitWindow. JVM fails to inline it.
117 if (BITNESS == 64) {
118 s.accumulator64 = ((long) s.intBuffer[s.halfOffset++] << HALF_BITNESS)
119 | Utils.shr64(s.accumulator64, HALF_BITNESS);
120 } else {
121 s.accumulator32 = ((int) s.shortBuffer[s.halfOffset++] << HALF_BITNESS)
122 | Utils.shr32(s.accumulator32, HALF_BITNESS);
123 }
124 s.bitOffset -= HALF_BITNESS;
125 }
126 }
127
128 static void doFillBitWindow(State s) {
129 if (BIT_READER_DEBUG != 0) {

Callers 14

copyRawBytesMethod · 0.95
decodeWindowBitsMethod · 0.95
decodeMetaBlockLengthMethod · 0.95
readBlockLengthMethod · 0.95
readSimpleHuffmanCodeMethod · 0.95
readHuffmanCodeMethod · 0.95
decodeContextMapMethod · 0.95

Calls 3

shr64Method · 0.95
shr32Method · 0.95

Tested by 1