feat(libc): implement memrchr #1592
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1592"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T13:57:34Z.
What
Implement the byte-wise reverse search used by
memrchr, including conversion of the search value tounsigned char. Add a dedicated guest test for repeated matches, bounded searches, high byte values, and misses.Tested
Linux, GCC 12.2.0:
guest_memrchrpassed; conventions check andgit diff --checkpassed.Checklist
main; no open PR implementsmemrchrGuestStrings.cppchanges in #1490Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T19:20:08Z.
No title reaches
memrchron main yet: the homebrew audit lists the import, but those titles stop earlier at other missing imports. Closing for now; reopen when it's a title's next stop on main, with the log line.Imported from boykopovar/AnyPS5. Originally posted by Amirtheshwaran on 2026-10-10T19:04:26Z.
@MarcZX100 heads-up: with #1848, #2090, #1772, #1650 and #1624 merged, PICO-8 for PS5 (PPSA99808) now stops at
memrchr(5G2ONUzRgjY) onmain, per @babyhuey's startup check on #1772: https://github.com/boykopovar/AnyPS5/pull/1772#issuecomment-6097664778. That's the condition Dean set for reopening this.I had #1906 for the same import; yours came first, so I'll leave it to you. If you'd rather not pick it up, let me know and I'll reopen mine.
Pull request closed