Lines Matching refs:length

1930     Rvl_t s, length = 0;  in read_variable_length()  local
1940 length += s; in read_variable_length()
1945 if ((sizeof(length)<8) && unlikely(length > ((Rvl_t)(-1)/2)) ) { in read_variable_length()
1950 return length; in read_variable_length()
1994 size_t length; in LZ4_decompress_generic() local
2025 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
2028 if (length == RUN_MASK) { in LZ4_decompress_generic()
2034 length += addl; in LZ4_decompress_generic()
2035 … if (unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overflow detection */ in LZ4_decompress_generic()
2036 … if (unlikely((uptrval)(ip)+length<(uptrval)(ip))) { goto _output_error; } /* overflow detection */ in LZ4_decompress_generic()
2040 if ((op+length>oend-32) || (ip+length>iend-32)) { goto safe_literal_copy; } in LZ4_decompress_generic()
2041 LZ4_wildCopy32(op, ip, op+length); in LZ4_decompress_generic()
2042 ip += length; op += length; in LZ4_decompress_generic()
2045 DEBUGLOG(7, "copy %u bytes in a 16-bytes stripe", (unsigned)length); in LZ4_decompress_generic()
2048 ip += length; op += length; in LZ4_decompress_generic()
2060 length = token & ML_MASK; in LZ4_decompress_generic()
2062 if (length == ML_MASK) { in LZ4_decompress_generic()
2068 length += addl; in LZ4_decompress_generic()
2069 length += MINMATCH; in LZ4_decompress_generic()
2070 … if (unlikely((uptrval)(op)+length<(uptrval)op)) { goto _output_error; } /* overflow detection */ in LZ4_decompress_generic()
2071 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
2075 length += MINMATCH; in LZ4_decompress_generic()
2076 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
2090 op += length; in LZ4_decompress_generic()
2101 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
2104 length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
2110 if (length <= (size_t)(lowPrefix-match)) { in LZ4_decompress_generic()
2112 LZ4_memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
2113 op += length; in LZ4_decompress_generic()
2117 size_t const restSize = length - copySize; in LZ4_decompress_generic()
2132 cpy = op + length; in LZ4_decompress_generic()
2151 length = token >> ML_BITS; /* literal length */ in LZ4_decompress_generic()
2162 if ( (length != RUN_MASK) in LZ4_decompress_generic()
2167 op += length; ip += length; in LZ4_decompress_generic()
2171 length = token & ML_MASK; /* match length */ in LZ4_decompress_generic()
2177 if ( (length != ML_MASK) in LZ4_decompress_generic()
2184 op += length + MINMATCH; in LZ4_decompress_generic()
2195 if (length == RUN_MASK) { in LZ4_decompress_generic()
2198 length += addl; in LZ4_decompress_generic()
2199 … if (unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overflow detection */ in LZ4_decompress_generic()
2200 … if (unlikely((uptrval)(ip)+length<(uptrval)(ip))) { goto _output_error; } /* overflow detection */ in LZ4_decompress_generic()
2207 cpy = op+length; in LZ4_decompress_generic()
2210 if ((cpy>oend-MFLIMIT) || (ip+length>iend-(2+1+LASTLITERALS))) { in LZ4_decompress_generic()
2221 DEBUGLOG(7, "partialDecoding: literal length = %u", (unsigned)length); in LZ4_decompress_generic()
2227 if (ip+length > iend) { in LZ4_decompress_generic()
2228 length = (size_t)(iend-ip); in LZ4_decompress_generic()
2229 cpy = op + length; in LZ4_decompress_generic()
2237 length = (size_t)(oend-op); in LZ4_decompress_generic()
2243 if ((ip+length != iend) || (cpy > oend)) { in LZ4_decompress_generic()
2245 … DEBUGLOG(6, "ip(%p) + length(%i) = %p != iend (%p)", ip, (int)length, ip+length, iend); in LZ4_decompress_generic()
2250 …LZ4_memmove(op, ip, length); /* supports overlapping memory regions, for in-place decompression s… in LZ4_decompress_generic()
2251 ip += length; in LZ4_decompress_generic()
2252 op += length; in LZ4_decompress_generic()
2263 ip += length; op = cpy; in LZ4_decompress_generic()
2271 length = token & ML_MASK; in LZ4_decompress_generic()
2274 if (length == ML_MASK) { in LZ4_decompress_generic()
2277 length += addl; in LZ4_decompress_generic()
2278 … if (unlikely((uptrval)(op)+length<(uptrval)op)) goto _output_error; /* overflow detection */ in LZ4_decompress_generic()
2280 length += MINMATCH; in LZ4_decompress_generic()
2289 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
2290 if (partialDecoding) length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
2294 if (length <= (size_t)(lowPrefix-match)) { in LZ4_decompress_generic()
2296 LZ4_memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
2297 op += length; in LZ4_decompress_generic()
2301 size_t const restSize = length - copySize; in LZ4_decompress_generic()
2317 cpy = op + length; in LZ4_decompress_generic()
2322 size_t const mlen = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
2361 if (length > 16) { LZ4_wildCopy8(op+8, match+8, cpy); } in LZ4_decompress_generic()