Home
last modified time | relevance | path

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

/external/brotli/c/enc/
Dliteral_cost.c62 size_t window_half = 495; in EstimateBitCostsForLiteralsUTF8() local
63 size_t in_window = BROTLI_MIN(size_t, window_half, len); in EstimateBitCostsForLiteralsUTF8()
81 if (i >= window_half) { in EstimateBitCostsForLiteralsUTF8()
84 i < window_half + 1 ? 0 : data[(pos + i - window_half - 1) & mask]; in EstimateBitCostsForLiteralsUTF8()
86 i < window_half + 2 ? 0 : data[(pos + i - window_half - 2) & mask]; in EstimateBitCostsForLiteralsUTF8()
88 --histogram[utf8_pos2][data[(pos + i - window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8()
91 if (i + window_half < len) { in EstimateBitCostsForLiteralsUTF8()
93 size_t c = data[(pos + i + window_half - 1) & mask]; in EstimateBitCostsForLiteralsUTF8()
94 size_t last_c = data[(pos + i + window_half - 2) & mask]; in EstimateBitCostsForLiteralsUTF8()
96 ++histogram[utf8_pos2][data[(pos + i + window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8()
[all …]