[codex] Match MSL bsearch #108

Merged
coah80 merged 1 commits from agent/continue-0922/tools-bsearch into main 2026-09-22 05:22:43 +00:00
coah80 commented 2026-09-22 05:21:41 +00:00 (Migrated from github.com)

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

Validation:

  • objdiff: 1/1 function at 100.0%; 240/240 code bytes and 20/20 data bytes complete
  • ctxdiff: bsearch reports zero instruction differences
  • pool_diff: both objects have no .data section
  • full link: build/43U/main.elf succeeds

Source commit: 1ceb1d74

Note

Implement bsearch in MSL Common and mark as matching

  • Adds bsearch implementation in bsearch.c that validates inputs, checks the first element, and binary searches the rest using the supplied comparator.
  • Updates configure.py to classify the MSL bsearch object as Matching instead of NonMatching.

Macroscope summarized ded8d62.

Adds the matching MSL bsearch implementation and links the unit in configure.py. Validation: - objdiff: 1/1 function at 100.0%; 240/240 code bytes and 20/20 data bytes complete - ctxdiff: bsearch reports zero instruction differences - pool_diff: both objects have no .data section - full link: build/43U/main.elf succeeds Source commit: 1ceb1d74 <!-- 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] > ### Implement `bsearch` in MSL Common and mark as matching > - Adds `bsearch` implementation in [bsearch.c](https://github.com/coah80/wii-ipl/pull/108/files#diff-d234488f26d1fea4df290421d26fdab73300bb1ac0eca8cf93c83fd930ec3832) that validates inputs, checks the first element, and binary searches the rest using the supplied comparator. > - Updates [configure.py](https://github.com/coah80/wii-ipl/pull/108/files#diff-4d5f3192809ec1b9add6b33007e0c50031ad9a0a2f3f55a481b506468824db2c) to classify the MSL `bsearch` object as `Matching` instead of `NonMatching`. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized ded8d62.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.