Home
last modified time | relevance | path

Searched refs:ringBufferMask (Results 1 – 3 of 3) sorted by relevance

/external/brotli/csharp/org/brotli/dec/
DDecode.cs672 int ringBufferMask = state.ringBufferSize - 1; in Decompress()
687 ringBufferMask = state.ringBufferSize - 1; in Decompress()
747 if (state.pos++ == ringBufferMask) in Decompress()
759 int prevByte1 = ringBuffer[(state.pos - 1) & ringBufferMask] & unchecked((int)(0xFF)); in Decompress()
760 int prevByte2 = ringBuffer[(state.pos - 2) & ringBufferMask] & unchecked((int)(0xFF)); in Decompress()
775 if (state.pos++ == ringBufferMask) in Decompress()
855 int src = (state.pos - state.distance) & ringBufferMask; in Decompress()
858 if ((src + copyLength < ringBufferMask) && (dst + copyLength < ringBufferMask)) in Decompress()
872 ringBuffer[state.pos] = ringBuffer[(state.pos - state.distance) & ringBufferMask]; in Decompress()
875 if (state.pos++ == ringBufferMask) in Decompress()
[all …]
/external/brotli/java/org/brotli/dec/
DDecode.java731 int ringBufferMask = s.ringBufferSize - 1; in decompress() local
744 ringBufferMask = s.ringBufferSize - 1; in decompress()
806 int prevByte1 = ringBuffer[(s.pos - 1) & ringBufferMask] & 0xFF; in decompress()
807 int prevByte2 = ringBuffer[(s.pos - 2) & ringBufferMask] & 0xFF; in decompress()
893 int src = (s.pos - s.distance) & ringBufferMask; in decompress()
898 if ((srcEnd < ringBufferMask) && (dstEnd < ringBufferMask)) { in decompress()
912 ringBuffer[(s.pos - s.distance) & ringBufferMask]; in decompress()
990 s.pos &= ringBufferMask; in decompress()
/external/brotli/js/
Ddecode.js768 var /** !number */ ringBufferMask = s.ringBufferSize - 1;
778 ringBufferMask = s.ringBufferSize - 1;
849 var /** !number */ prevByte1 = ringBuffer[(s.pos - 1) & ringBufferMask] & 0xFF;
850 var /** !number */ prevByte2 = ringBuffer[(s.pos - 2) & ringBufferMask] & 0xFF;
934 var /** !number */ src = (s.pos - s.distance) & ringBufferMask;
939 if ((srcEnd < ringBufferMask) && (dstEnd < ringBufferMask)) {
955 ringBuffer[s.pos] = ringBuffer[(s.pos - s.distance) & ringBufferMask];
1027 s.pos &= ringBufferMask;