match(wprintf 9/9) #951

Merged
coah80 merged 1 commits from agent/grok/decomp-worker-3/wprintf into main 2026-10-02 20:16:41 +00:00
coah80 commented 2026-10-02 20:15:49 +00:00 (Migrated from github.com)

Summary

  • __wpformatter → 100% (was ~99.14%, 593/593 with 24 operand diffs)
  • Unit exact: 8/9 → 9/9; data unchanged
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

Why

  • Dropped the wideLength temporary and wrote wchar 's' length directly into num_chars (matches matched MSL sources from TP/SS).
  • Narrow #s length prefix uses (unsigned char)*buff_ptr — the authentic MSL form (target loads via r25 / buff_ptr while the char* lives in r24). That is the retail codegen shape; prior attempts that kept wideLength while switching only the load reshaped callee-saved regs (~169 diffs).

Checks

  • pool_diff identical
  • ctxdiff __wpformatter diffs 0; all 9 unit symbols diffs 0
  • Full ninja, build.sha1 OK, DOL hash match
  • No other function scores lowered
## Summary - `__wpformatter` → **100%** (was ~99.14%, 593/593 with 24 operand diffs) - Unit exact: **8/9 → 9/9**; data unchanged - DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d` ## Why - Dropped the `wideLength` temporary and wrote wchar `'s'` length directly into `num_chars` (matches matched MSL sources from TP/SS). - Narrow `#s` length prefix uses `(unsigned char)*buff_ptr` — the authentic MSL form (target loads via r25 / `buff_ptr` while the char* lives in r24). That is the retail codegen shape; prior attempts that kept `wideLength` while switching only the load reshaped callee-saved regs (~169 diffs). ## Checks - `pool_diff` identical - ctxdiff `__wpformatter` diffs 0; all 9 unit symbols diffs 0 - Full `ninja`, `build.sha1` OK, DOL hash match - No other function scores lowered
coah80 commented 2026-10-02 20:16:39 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.