Searched refs:last_distance (Results 1 – 3 of 3) sorted by relevance
79 int last_distance = distance_cache[0]; in PrepareDistanceCache() local80 distance_cache[4] = last_distance - 1; in PrepareDistanceCache()81 distance_cache[5] = last_distance + 1; in PrepareDistanceCache()82 distance_cache[6] = last_distance - 2; in PrepareDistanceCache()83 distance_cache[7] = last_distance + 2; in PrepareDistanceCache()84 distance_cache[8] = last_distance - 3; in PrepareDistanceCache()85 distance_cache[9] = last_distance + 3; in PrepareDistanceCache()
252 int last_distance = -1; in CreateCommands() local298 candidate = ip - last_distance; in CreateCommands()335 if (distance == last_distance) { in CreateCommands()340 last_distance = distance; in CreateCommands()394 last_distance = (int)(base - candidate); /* > 0 */ in CreateCommands()397 EmitDistance((uint32_t)last_distance, commands); in CreateCommands()
460 int last_distance; in BrotliCompressFragmentFastImpl() local491 last_distance = -1; in BrotliCompressFragmentFastImpl()536 candidate = ip - last_distance; in BrotliCompressFragmentFastImpl()586 if (distance == last_distance) { in BrotliCompressFragmentFastImpl()592 last_distance = distance; in BrotliCompressFragmentFastImpl()627 last_distance = (int)(base - candidate); /* > 0 */ in BrotliCompressFragmentFastImpl()631 EmitDistance((size_t)last_distance, cmd_depth, cmd_bits, in BrotliCompressFragmentFastImpl()