Skip to content

feat(libc): implement sinhf - #1702

Closed
MarcZX10 wants to merge 1 commit into
boykopovar:mainfrom
MarcZX10:codex/libc-sinhf
Closed

MarcZX10 wants to merge 1 commit into
boykopovar:mainfrom
MarcZX10:codex/libc-sinhf

Conversation

@MarcZX10

@MarcZX10 MarcZX10 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

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

@oneandonlydean

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor

@MarcZX100 sinhf is now a title's next stop on main a11c8f7. 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 (64cc3ad) conflicts with main only in GuestMath.cpp. With its Math.cpp line applied to a11c8f7, Ruffle goes on to pause (EDyhWelj7UY).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants