From 6d355dddcecb89bad6ce3a0b7d8bd93b6d44c20c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 27 Mar 2026 14:31:36 -0600 Subject: [PATCH] [gpu] Report sizes in KiB in hb-gpu-encode-all Co-Authored-By: Claude Opus 4.6 (1M context) --- util/hb-gpu-encode-all.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/util/hb-gpu-encode-all.cc b/util/hb-gpu-encode-all.cc index ba5521f5e..b86d5e45e 100644 --- a/util/hb-gpu-encode-all.cc +++ b/util/hb-gpu-encode-all.cc @@ -109,11 +109,10 @@ main (int argc, char **argv) printf ("empty: %u\n", num_empty); if (num_failed) printf ("FAILED: %u\n", num_failed); - printf ("total: %" PRIu64 " bytes (%.2f KiB)\n", - total_bytes, total_bytes / 1024.); + printf ("total: %.2f KiB\n", total_bytes / 1024.); if (num_encoded) - printf ("avg: %.0f bytes/glyph (non-empty)\n", - (double) total_bytes / num_encoded); + printf ("avg: %.2f KiB/glyph (non-empty)\n", + total_bytes / 1024. / num_encoded); hb_gpu_draw_destroy (draw); hb_font_destroy (font);