Repository navigation
feat(libc): export isnanf and __signbitl - #3640
Merged
oneandonlydean merged 1 commit intoOct 12, 2026
Merged
oneandonlydean merged 1 commit into
oneandonlydean merged 1 commit into
Conversation
This was referenced Oct 11, 2026
Contributor
|
Independent pre-review on Linux (full CI runs only happen on manual trigger, so recording one): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
|
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
9 tasks done
Contributor
|
I checked this PR on both OSes with Dusklight (PPSA99305, catalog build). With #3598 (
|
9 tasks done
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Exports the missing
isnanf(3pF7bUSIH8o) and__signbitl(Cj81LPErPCc) functions fromlibSceLibcInternal. XPSemu's import audit lists one reference to each; the following unresolved-import stops are predicted from registry order and have not been observed in a game run:isnanfforwards to the existing__isnanfimplementation.__signbitlreturns exactly 0 or 1 using the host's x87long doublesign bit, with a compile-time size check for the guest ABI. Tests cover NaN, infinities, finite values, signed zero, and signed long-double NaN. Thanks to @screamm for confirming the imported NIDs, recording the FreeBSD 11.4 references, and identifying these XPSemu imports in #3624.Tested
guest_math_tests;guest_mathpassed three consecutive runs.python3 tools/check_conventions.py --base upstream/mainandgit diff upstream/main --checkpassed.Checklist
main; no other open PR implements these functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository