Vincent Rabaud 828b4ce062 Switch ExtraCost to ints and implement it in SSE.
The histograms count the occurrences of len/dist in entropy images.
Those (at most (1<<14) by (1<<14)) are sub-sampled by at least
MIN_HUFFMAN_BITS == 2, hence at most 24 bits in a histogram value.
At most, we multiply by 19 (because the longest histogram is of
size 40 and we do 40>>1, cf code) for the bit cost. So it all fits
in 32 bits.

Change-Id: Ife24b035f54794851ff31f2fac07901f724c6d7f
2023-06-01 10:17:13 +02:00
..
2023-05-02 12:28:50 -07:00
2023-05-02 12:28:50 -07:00
2022-12-16 16:47:42 -08:00
2022-12-16 16:47:42 -08:00
2022-12-16 16:47:42 -08:00