Files
wuffs/std
Claude 88c32bc668 std/brotli: port bit_cost.c and histogram.c for the encoder
Add the bit_cost struct (encode_bit_cost.wuffs, encode_histogram.wuffs):
BrotliBitsEntropy, BrotliPopulationCost{Literal,Command,Distance},
FastLog2, the histogram helpers and BrotliBuildHistogramsWithContext,
with doubles computed by std/softfloat in the C code's operation order.
Histograms and commands are little-endian byte slices with the C structs'
memory layout.

Add a test-only metablock_tester struct and the
script/manual-test-brotli-metablock-parity.c harness, which compares
BitsEntropy and PopulationCost* bit for bit with libbrotlienc v1.2.1
(200000 random histograms: 0 mismatches).
2026-10-27 00:16:37 +00:00
..
2024-07-08 17:15:48 +10:00
2024-07-08 17:15:48 +10:00
2024-07-08 17:15:48 +10:00
2024-07-08 17:15:48 +10:00
2024-07-08 17:15:48 +10:00
2024-07-08 17:15:48 +10:00
2024-08-26 12:30:20 +10:00
2026-10-18 18:13:59 +11:00
2024-07-08 17:15:48 +10:00
2024-07-08 17:15:48 +10:00
2024-07-08 17:15:48 +10:00
2024-07-08 17:15:48 +10:00
2024-08-26 12:30:20 +10:00