Improve RGB565420 fuzzy score with yEnd/lumaSkip declaration order #1113

Merged
coah80 merged 1 commits from agent/bittle/rgb420-yend-lumaskip into main 2026-10-03 15:33:37 +00:00
coah80 commented 2026-10-03 15:32:30 +00:00 (Migrated from github.com)

Scope

43U only. Swap the existing yEnd/lumaSkip declarations in normal TMCJPEGDEC_converterYUV420toRGB565. Types, scope, assignments, uses, and every other source byte are unchanged.

Measurements

  • Function: 95.35461% → 95.42553%; unit: 96.90556% → 96.91203%
  • 141 instructions unchanged; structural/positional differences: (6,81) → (6,80)
  • Twelve sibling bodies and seven exact functions preserved; exact code 2648/6184; all exact/code/data/link counts unchanged
  • Current-base aggregate fuzzy remains 99.731544% at report precision. This is a local fuzzy gain, not an exact match or completion claim.

Independent parent verification

Rebuilt the full default 43U target and explicit ok on main 1f260c24e5 with cached toolchain. All 1,027 current-main objects/report units checked; only owned object/unit changes, no function/exact/code/data/link regression. Selected object and raw report match snapshot 0116. Tested tree: a890d1b944.

Independently regenerated official reports and verified the complete fixed set of 783 real compilations: baseline plus 782 neighbors. Unique gain 0116, 215 ties including baseline, 567 losses. Seven orders overlap two prior official manifests and reproduce; older overlap is unknown. Only 5/782 winner neighbors observed, so no fixed-point or global novelty claim.

Pool identical and empty. Literal audit covers 12 functions without candidates/errors; unchanged size-mismatched setter explicitly skipped. Sequential pixel oracle: 15,260 vectors / 45,780 executions, 7,068 contained aliases, full 141-instruction coverage, preserved ABI. Repository JPEG suite: 9,456 paired cases pass. These are bounded interpreter diagnostics, not formal equivalence or hardware tests.

DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d. Worktree/diff checks pass. Log and full CSV committed; original binaries and evidence archives stay local. No merge performed or requested.

Note

Reorder lumaSkip/yEnd declarations in TMCJPEGDEC_converterYUV420toRGB565

Reorders local declarations in Texture_MCUtoRGB565.c so lumaSkip comes before chromaSkip and yEnd appears later, improving the fuzzy match score. Variables, assignments, and runtime behavior are unchanged.

Adds an experiment report in allhands-jpeg-rgb420-third-neighbors.attempts.md and a results CSV in allhands-jpeg-rgb420-third-neighbors.results.csv.

Macroscope summarized 9e65b1d.

## Scope 43U only. Swap the existing yEnd/lumaSkip declarations in normal TMCJPEGDEC_converterYUV420toRGB565. Types, scope, assignments, uses, and every other source byte are unchanged. ## Measurements - Function: 95.35461% → 95.42553%; unit: 96.90556% → 96.91203% - 141 instructions unchanged; structural/positional differences: (6,81) → (6,80) - Twelve sibling bodies and seven exact functions preserved; exact code 2648/6184; all exact/code/data/link counts unchanged - Current-base aggregate fuzzy remains 99.731544% at report precision. This is a local fuzzy gain, not an exact match or completion claim. ## Independent parent verification Rebuilt the full default 43U target and explicit ok on main 1f260c24e529adb0bfd6f61d7483372f7ca8f3ff with cached toolchain. All 1,027 current-main objects/report units checked; only owned object/unit changes, no function/exact/code/data/link regression. Selected object and raw report match snapshot 0116. Tested tree: a890d1b94442b576deb23535243f2a7a825d4383. Independently regenerated official reports and verified the complete fixed set of 783 real compilations: baseline plus 782 neighbors. Unique gain 0116, 215 ties including baseline, 567 losses. Seven orders overlap two prior official manifests and reproduce; older overlap is unknown. Only 5/782 winner neighbors observed, so no fixed-point or global novelty claim. Pool identical and empty. Literal audit covers 12 functions without candidates/errors; unchanged size-mismatched setter explicitly skipped. Sequential pixel oracle: 15,260 vectors / 45,780 executions, 7,068 contained aliases, full 141-instruction coverage, preserved ABI. Repository JPEG suite: 9,456 paired cases pass. These are bounded interpreter diagnostics, not formal equivalence or hardware tests. DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d. Worktree/diff checks pass. Log and full CSV committed; original binaries and evidence archives stay local. No merge performed or requested. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Reorder `lumaSkip`/`yEnd` declarations in `TMCJPEGDEC_converterYUV420toRGB565` > Reorders local declarations in [Texture_MCUtoRGB565.c](https://github.com/coah80/wii-ipl/pull/1113/files#diff-5c9e5cd4d235724c9e4882611e36ba794e9821ede7e7396a48272a942676ee86) so `lumaSkip` comes before `chromaSkip` and `yEnd` appears later, improving the fuzzy match score. Variables, assignments, and runtime behavior are unchanged. > > Adds an experiment report in [allhands-jpeg-rgb420-third-neighbors.attempts.md](https://github.com/coah80/wii-ipl/pull/1113/files#diff-b7b77d4a54dcb65e614392832ebbc04bc77c3d4c0e5a3f3c552ff71fe0211080) and a results CSV in [allhands-jpeg-rgb420-third-neighbors.results.csv](https://github.com/coah80/wii-ipl/pull/1113/files#diff-40298e3e0b01ec58bca3435561c2df533e14cd62687e0a70926d4c67d490653d). > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 9e65b1d.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 15:33:35 +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.