feat(libSceLibcInternal): implement fminf required for PPSA99902 startup #4592
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4592"
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 leorossi2005 on 2026-10-12T16:26:22Z.
What
fminfinlibSceLibcInternal(resolving NIDuVRcM2yFdP4).Together with
pathconf(#3611) andsceKernelGetSocSensorTemperature(#4588), this resolves all missing ELF imports blocking Sonic Unleashed Recompiled (PPSA99902) from loading and reaching guest entry.Tested
Windows 11 (x86_64), Sonic Unleashed Recompiled (PPSA99902):
Resolves startup relinker failures:
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T16:41:46Z.
Progress report (
584cc4c→02d1dbb)📈 System libraries: 87.87% (+0.01%, +1 implemented functions)
✅ 1 implemented
fminf_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T20:44:31Z.
Review: CHANGES_REQUESTED
Thanks for tracing the imports for PPSA99902. This PR currently bundles three things, two of which are already open elsewhere:
pathconf(libkernel_sys/Export.cpp,GuestKernelSys.cpp, the TechnicalDebt line) is the same implementation as #3611 / #4503 (#4503 is mergeable). The body says "Depends on: #4503", so drop it from this branch instead of carrying a copy; it will conflict with whichever lands first.sceKernelGetSocSensorTemperature(libkernel/Unimplemented.cpp:18and its TechnicalDebt line) overlaps #4588, which implements it with tests. Drop it here and list #4588 under Depends on if you need it.fminf(libSceLibcInternal/Export.cpp:145) is not in any other open PR andstd::fminmatches the libc semantics. Keep this one, but add a test pinning edge rows (one NaN operand returns the other, both NaN,-0.0vs+0.0, ±inf), registered in ctest.The branch also conflicts with
main; please rebase after removing the two duplicates so the PR is one topic (fminf).Imported from boykopovar/AnyPS5. Originally posted by leorossi2005 on 2026-10-12T21:33:49Z.
@adriadam10 Thank for the suggestions, I've dropped
pathconfandsceKernelGetSocSensorTemperaturefrom this PR, and added tests forfminfas requested.I've also done a rebase to remove conflicts with
mainImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T07:46:01Z.
Review: APPROVED
Checked
fminf(NIDuVRcM2yFdP4) against aerolib and prosper, built and ranguest_fminf(passes; without the export the test fails to link). Thanks for droppingpathconfand the SoC sensor; merging.