feat(libc): implement sinhf #1702

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/1702 into main
MarcZX10 commented 2026-10-08 17:01:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T17:01:42Z.


What

Implement the sinhf libc export with std::sinh. The 2026-10-08 homebrew import audit lists sinhf as an unresolved libSceLibcInternal import for Ruffle Flash (PPSA68091). #1405 adds the double-precision sinh export but not this float export.

Tested

  • Linux: cmake --build build --target libc guest_math_tests --parallel 4
  • Linux: ctest --test-dir build -R '^guest_math$' --output-on-failure (1/1 passed)
  • python3 tools/check_conventions.py --base upstream/main passed.
  • git diff --check passed.
  • No title run.

Checklist

  • Based on current main; no other open PR implements the same function
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4790191347 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1702). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T17:01:42Z. --- ### What Implement the `sinhf` libc export with `std::sinh`. The 2026-10-08 homebrew import audit lists `sinhf` as an unresolved `libSceLibcInternal` import for Ruffle Flash (PPSA68091). #1405 adds the double-precision `sinh` export but not this float export. ### Tested - Linux: `cmake --build build --target libc guest_math_tests --parallel 4` - Linux: `ctest --test-dir build -R '^guest_math$' --output-on-failure` (1/1 passed) - `python3 tools/check_conventions.py --base upstream/main` passed. - `git diff --check` passed. - No title run. ### Checklist - [x] Based on current `main`; no other open PR implements the same function - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
oneandonlydean commented 2026-10-08 19:21:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T19:21:13Z.


No title reaches sinhf on 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6067343440 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1702#issuecomment-6067343440). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-08T19:21:13Z. --- No title reaches `sinhf` on 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.
babyhuey commented 2026-10-11 12:54:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-11T12:54:07Z.


@MarcZX100 sinhf is now a title's next stop on main a11c8f7f. With readv (#3382) merged, Ruffle Flash (PPSA68091) reports this on Linux (catalog build, sce_module/libc.prx unwrapped as #2605 requires):

app.elf: symbol lookup error: app.elf: undefined symbol: 1t1-JoZ0sZQ

The head (64cc3ad2) conflicts with main only in GuestMath.cpp. With its Math.cpp line applied to a11c8f7f, Ruffle goes on to pause (EDyhWelj7UY).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109232538 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1702#issuecomment-6109232538). Originally posted by [babyhuey](https://github.com/babyhuey) on 2026-10-11T12:54:07Z. --- @MarcZX100 `sinhf` is now a title's next stop on `main` a11c8f7f. With `readv` (#3382) merged, Ruffle Flash (PPSA68091) reports this on Linux (catalog build, `sce_module/libc.prx` unwrapped as #2605 requires): `app.elf: symbol lookup error: app.elf: undefined symbol: 1t1-JoZ0sZQ` The head (64cc3ad2) conflicts with `main` only in `GuestMath.cpp`. With its `Math.cpp` line applied to a11c8f7f, Ruffle goes on to `pause` (`EDyhWelj7UY`).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!1702
No description provided.