Lines Matching refs:dist_array
476 int quality, int cache_bits, uint32_t* const dist_array) { in BackwardReferencesHashChainDistanceOnly() argument
512 dist_array[0] = 0; in BackwardReferencesHashChainDistanceOnly()
542 dist_array[i + k] = k + 1; in BackwardReferencesHashChainDistanceOnly()
584 dist_array[i] = 1; // only one is inserted. in BackwardReferencesHashChainDistanceOnly()
604 static void TraceBackwards(uint32_t* const dist_array, in TraceBackwards() argument
608 uint32_t* path = dist_array + dist_array_size; in TraceBackwards()
609 uint32_t* cur = dist_array + dist_array_size - 1; in TraceBackwards()
610 while (cur >= dist_array) { in TraceBackwards()
617 *chosen_path_size = (int)(dist_array + dist_array_size - path); in TraceBackwards()
706 uint32_t* dist_array = in BackwardReferencesTraceBackwards() local
707 (uint32_t*)WebPSafeMalloc((uint64_t)dist_array_size, sizeof(*dist_array)); in BackwardReferencesTraceBackwards()
709 if (dist_array == NULL) goto Error; in BackwardReferencesTraceBackwards()
713 dist_array)) { in BackwardReferencesTraceBackwards()
716 TraceBackwards(dist_array, dist_array_size, &chosen_path, &chosen_path_size); in BackwardReferencesTraceBackwards()
724 free(dist_array); in BackwardReferencesTraceBackwards()