You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
acoshf currently forwards to the Windows host library. The #9707 survey reports 216,017 and 216,024 result-bit differences from the two bundled libc.prx builds over 20 million inputs. This ports FreeBSD msun's e_acoshf.c range handling and reuses the existing log1pf path for inputs near 1. The invalid-domain path raises FE_INVALID without setting errno, as the source does.
The survey establishes host-versus-title differences, not the exact implementation used by every console library. The exact system libSceLibcInternal behavior and FMA-contracted libc.prx results remain unverified, as recorded in the debt entry.
Tested
Linux, GCC 12.2: compiled Math.cpp and GuestMath.cpp.
A focused Linux harness passed the boundary and special-value cases, including invalid-domain FE_INVALID and unchanged errno; 1,000,000 random finite inputs stayed within 2 ULP of double-precision std::acosh rounded to float.
MinGW GCC: GuestMath.cpp compiled.
The complete guest_math target was not run.
check_conventions.py, pr_overlap.py and git diff --check passed.
Checklist
Based on current main; no other open PR implements the same functions
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.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
Review pass on the exact current head: the function follows the cited FreeBSD msun range handling, special values and boundary cases are covered in GuestMath, and the remaining console/FMA uncertainty is recorded in technical debt. The focused Linux numerical checks and MinGW compilation reported in the PR are useful evidence; the full target was not reported as run for these three PRs. I checked whitespace, conventions and current-main merge status locally; all pass cleanly except #10007 has an inherited debt-length warning and 0 errors. I could not rerun guest_math locally because CMake configuration is blocked by the missing SDL2 development package. Hosted intake/conventions/relinker matrices pass; full Linux/Windows jobs are skipped under repository policy.
Overlap note under the repository's overlap rule: git merge-tree of this head against #9844 and #9873 (core/libs/tests/GuestMath.cpp) reports content conflicts. They are separate functions added at the same place. Those PRs are older (10-22) and already reviewed, so I propose they land first and this one is rebased after them, keeping both sides; #10113 (expf) is already stacked to land after #10007. If you'd rather land this one first, say so and I'll restack mine and add Depends on instead.
I measured a follow-up domain-error gap in both supplied bundled copies (FAR PPSA03766 and Tetris PPSA07923). They agree on all12,960 sampled observations; the current acoshf path leaves errno untouched and misses x87 invalid, with negative quiet NaNs also missing SSE invalid. #10610 calls the existing helper and sets EDOM in the existing domain branch, retaining all numerical range handling. The same-test main control fails the named regression, candidate math/exact/Dinkumware3/3 passes, and errno/SSE/x87 fields match both supplied copies after the fix. No result bits change.36 preexisting finite directed-rounding bit differences at0x40000002/0x40000003 remain documented, with no claim this fixes those. Exact hashes, matrices, logs and limitations are attached to #10610. No SDK binaries or code bytes are posted.
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
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
acoshfcurrently forwards to the Windows host library. The #9707 survey reports 216,017 and 216,024 result-bit differences from the two bundledlibc.prxbuilds over 20 million inputs. This ports FreeBSD msun'se_acoshf.crange handling and reuses the existinglog1pfpath for inputs near 1. The invalid-domain path raisesFE_INVALIDwithout settingerrno, as the source does.The survey establishes host-versus-title differences, not the exact implementation used by every console library. The exact system
libSceLibcInternalbehavior and FMA-contractedlibc.prxresults remain unverified, as recorded in the debt entry.Tested
Math.cppandGuestMath.cpp.FE_INVALIDand unchangederrno; 1,000,000 random finite inputs stayed within 2 ULP of double-precisionstd::acoshrounded to float.GuestMath.cppcompiled.guest_mathtarget was not run.check_conventions.py,pr_overlap.pyandgit diff --checkpassed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)