mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
The libc.prx bundled with PPSA10122 01.101.000 reads the scaling offset of all three as a 64-bit value. Declared as short, an offset outside 16 bits wrapped and turned an overflow into an underflow. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011TXsSW8zeAgKgHLCFsYwM3
1.8 KiB
1.8 KiB
libc
change [_LExp]
- _LExp (libc) - matches firmware 13.42's system
libSceLibcInternal.sprxas measured off-console: x-only cutoffs at ±29490 ignoreoffset, above +29490 storesy*infand raises overflow, below -29490 stores0*ywith no range state; a NaN multiplier is stored; overflow always returns signed infinity; underflow returns +0 withERANGE; subnormal results returnFiniteand preserve inexact.offsetis read as 64 bits, as that module and PPSA10122 01.101.000'slibc.prx(0x45be0) do; 300,000 calls each with an offset outside and inside 16 bits match that title's code run natively on Windows at 64-, 53- and 24-bit precision and in each rounding direction. An offset beyond ±200,000 is treated as ±200,000. Console results and signaling NaNs remain unverified.
change [_Exp and _FExp]
- _Exp and _FExp (libc) - signaling NaNs, directed rounding and flush-to-zero modes are unverified, and titles whose
libc.prxcontracts multiply-adds to FMA, such as PPSA13934, differ by one unit in the last place on 889_FExpand 15_Expof 300,000 random calls. Finite results use the constants, evaluation order and half-epsilon shortcut of thelibc.prxthat titles ship and match that of PPSA04158, PPSA05916, PPSA07923 and PPSA20423 on those calls, run on a Windows host. Special operands follow PRAGMATA PPSA02530's bundledlibc.prx: the x-only cutoffs at ±229/±1842 store0.0*ybelow andy*infwith overflow above, ignoring the offset; a zero multiplier keeps its sign, a NaN multiplier leaves*pxunchanged, and+infwith zero or-infwith infinity is invalid. The offset is read as 64 bits, as PPSA10122'slibc.prxdoes: 300,000 calls each with an offset outside 16 bits match it at round-to-nearest.