[codex] Match MSL arithmetic helpers #101

Merged
coah80 merged 1 commits from agent/continue-0922/tools-arith into main 2026-09-22 05:10:58 +00:00
coah80 commented 2026-09-22 05:10:06 +00:00 (Migrated from github.com)

Adds the matching MSL arithmetic helper implementation and links the unit in configure.py.

Validation:

  • objdiff: 8/8 functions at 100.0%; 628/628 code bytes and 40/40 data bytes complete
  • ctxdiff: all 8 functions report zero instruction differences
  • pool_diff: both objects have no .data section
  • full link: build/43U/main.elf succeeds

Source commit: b7304010

Note

Match MSL arithmetic helpers in arith.c

  • Adds abs, labs, div, ldiv_t, and checked arithmetic helpers (__msl_add, __msl_ladd, __msl_lmul, __msl_div, __msl_mod) to arith.c
  • Switches MSL_Common/arith.c from NonMatching to Matching in configure.py for the MSL_C.PPCEABI.bare.H library

Macroscope summarized fa2c571.

Adds the matching MSL arithmetic helper implementation and links the unit in configure.py. Validation: - objdiff: 8/8 functions at 100.0%; 628/628 code bytes and 40/40 data bytes complete - ctxdiff: all 8 functions report zero instruction differences - pool_diff: both objects have no .data section - full link: build/43U/main.elf succeeds Source commit: b7304010 <!-- 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] > ### Match MSL arithmetic helpers in `arith.c` > - Adds `abs`, `labs`, `div`, `ldiv_t`, and checked arithmetic helpers (`__msl_add`, `__msl_ladd`, `__msl_lmul`, `__msl_div`, `__msl_mod`) to [arith.c](https://github.com/coah80/wii-ipl/pull/101/files#diff-246781af93da422ede808eba95d5f261f11fbf96f7f1bc63df2b87e504f944ad) > - Switches `MSL_Common/arith.c` from `NonMatching` to `Matching` in [configure.py](https://github.com/coah80/wii-ipl/pull/101/files#diff-4d5f3192809ec1b9add6b33007e0c50031ad9a0a2f3f55a481b506468824db2c) for the `MSL_C.PPCEABI.bare.H` library > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized fa2c571.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.