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
..
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2026-08-06 14:57:00 +10:00
2026-06-29 14:28:48 +10:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2024-04-22 09:13:22 +10:00
2023-10-06 20:52:36 +02:00
2024-08-25 13:05:59 +10:00
2026-09-15 10:42:51 +10:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2026-09-15 10:42:51 +10:00
2026-09-15 10:42:51 +10:00
2026-09-15 10:42:51 +10:00
2023-10-06 20:52:36 +02:00
2024-02-09 22:16:10 +11:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2026-05-10 21:17:50 +10:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2026-10-26 23:55:56 +00:00
2026-10-27 00:16:37 +00:00
2023-10-06 20:52:36 +02:00
2026-10-26 22:46:32 +00:00
2026-10-26 22:46:32 +00:00
2025-02-24 11:18:24 +11:00
2026-06-23 10:47:26 +10:00
2023-10-06 20:52:36 +02:00
2025-02-24 11:18:24 +11:00
2023-10-06 20:52:36 +02:00
2026-10-26 23:55:56 +00:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-15 00:08:56 +11:00
2024-04-23 23:10:30 +10:00
2024-04-23 23:10:30 +10:00
2023-10-15 00:08:56 +11:00
2024-04-22 14:05:16 +10:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2026-10-18 18:13:59 +11:00
2023-10-06 20:52:36 +02:00
2024-10-27 11:51:34 +10:30
2023-10-06 20:52:36 +02:00
2024-08-26 12:30:20 +10:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2024-02-15 13:40:09 +11:00
2026-08-10 17:38:42 +10:00
2026-08-12 21:10:36 +10:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2026-08-10 16:55:56 +10:00
2024-09-06 12:35:53 +10:00
2024-07-27 09:33:39 +10:00
2023-10-06 20:52:36 +02:00
2026-06-30 16:09:45 +10:00
2023-10-06 20:52:36 +02:00
2023-10-06 20:52:36 +02:00
2024-02-09 22:16:10 +11:00
2023-10-06 20:52:36 +02:00