Skip to content

feat(libSceLibcInternal): implement _Logpoly, _FLogpoly and _LLogpoly - #23719

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
nodex0:feat/libsce-libcinternal-logpoly
Nov 20, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
nodex0:feat/libsce-libcinternal-logpoly

Conversation

@nodex0

@nodex0 nodex0 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

What

Implements _Logpoly, _FLogpoly and _LLogpoly, which threw with no parameters declared. #21722 left them stubbed until a firmware measurement of their return values; this is that measurement.

Source: libSceLibcInternal.sprx, firmware 13.40 (sha256 2350ddff2b536e32480bbb16d754ff018be6d8866f0a340deb165587155fd334), read from its disassembly and measured on a PS5.

_Logpoly (0xd84d0), double in and out in xmm0, no calls:

d84d0: vmovsd      0x98788(%rip),%xmm1
d84d8: vfmadd213sd 0x97ab7(%rip),%xmm0,%xmm1
d84e1: vfmadd213sd 0x977c6(%rip),%xmm0,%xmm1
d84ea: vfmadd213sd 0x97aad(%rip),%xmm0,%xmm1
d84f3: vfmadd213sd 0x98184(%rip),%xmm0,%xmm1
d84fc: vfmadd213sd 0x97d8b(%rip),%xmm0,%xmm1
d8505: vfmadd213sd 0x979a2(%rip),%xmm1,%xmm0
d850e: ret

_FLogpoly (0xd8510), float in and out in xmm0, no calls:

d8510: vmovss      0x96d60(%rip),%xmm1
d8518: vfmadd213ss 0x96e2f(%rip),%xmm0,%xmm1
d8521: vfmadd213ss 0x96fc6(%rip),%xmm1,%xmm0
d852a: ret

_LLogpoly (0x47ce0), long double on the stack, calls _LPoly (0x47d10) with an eight-entry table and degree 7:

47ce8: lea    0x12b8d1(%rip),%rdi        # 0x1735c0
47cef: mov    $0x7,%esi
47cf4: fldt   0x10(%rbp)
47cf7: fstpt  (%rsp)
47cfa: call   0x47d10
  • The double and float coefficients are the bytes of the constants those instructions load.
  • The table at 0x1735c0 is byte for byte LibcDetail::LogPolynomial, which _LLog already uses (fix(libc): compute _LLog with the bundled libc.prx's Dinkumware code #11270), so _LLogpoly passes that table to _LPoly and copies nothing.
  • _LPow is the only caller inside the module. No firmware 13.40 module imports the three names.

Console measurement: PS5, firmware 13.40, a payload process built with ps5-payload-sdk v0.45 and loaded through elfldr on 2026-11-19. It resolves the three exports with dlopen/dlsym and prints the result bits. The process starts with MXCSR 0x9fc0 and x87 control word 0x037f. Probe sources and raw output are in the first comment.

Inputs, per type PS5 main This PR
+0, -0, 10 finite values, +inf, -inf the values listed in the first comment throws equal to the PS5, bit for bit
4 quiet NaNs (both signs, with and without payload) the input throws the input
2 signalling NaNs the input, quieted throws the input, quieted

The same 20 inputs per type were measured again with the control registers changed around each call: _Logpoly and _FLogpoly in the four MXCSR rounding modes, _LLogpoly in the four x87 rounding modes at 24-bit, 53-bit and 64-bit precision. All 400 results equal this PR's, bit for bit, which covers what a title's floating-point settings could change.

The pending fragment of #23457 changed two of the debt entries this PR changes, so its result lines lose _FLogpoly and _LLogpoly here, as tools/debt_fold.py --check asks.

Not tested: other firmware, the floating-point exception flags, Linux and macOS.

Tested

  • Windows 11, WinLibs GCC 15.2.0, Release, on main at 6db6a3e.
  • guest_libc_internal_logpoly compares the result bits of the 20 inputs per type with the console's, plus 22 of the console's results in directed rounding modes and reduced x87 precision: passes. A local harness compared all 400 mode results. Negative control: with the last digit of one double coefficient changed it fails.
  • guest_libc_internal_scaled_pow and public_headers pass.
  • python tools/check_conventions.py --base origin/main and python tools/debt_fold.py --check pass.
  • No title run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@nodex0

nodex0 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Probe sources and raw output of the console measurements (PS5, firmware 13.40, payload process, ps5-payload-sdk v0.45, elfldr, 2026-11-19).

Lines are d|f <input bits> <result bits> and l <input mantissa> <input sign and exponent> <result mantissa> <result sign and exponent>. In the second run rN is the rounding-control field (0 nearest, 1 down, 2 up, 3 toward zero) and pN the x87 precision in bits.

Raw output, default modes
symbols 1 1 1
d 0000000000000000 3fe55555555555bc
d 8000000000000000 3fe55555555555bc
d 3f50000000000000 3fe558891aee24e4
d 3f88000000000000 3fe57c0ec6bc4c6d
d 3fa921fb54442d18 3fe5fc0c07e51327
d 3fd5555555555555 3feafa4e03049335
d 3ff0000000000000 4000764f9f13e118
d bfe8000000000000 3fdecc2bb29c9d9b
d 3fcfffffe0000000 3fe93e9a7e408a2e
d 40223456789abcde 40f7446791399e5c
d bfb6a09e667f3bcd 3fe444d0d5e7bf64
d 3eb0000000000001 3fe5555622222bad
d 7ff0000000000000 7ff0000000000000
d fff0000000000000 7ff0000000000000
d 7ff8000000000000 7ff8000000000000
d fff8000000000000 fff8000000000000
d 7ff8000000001234 7ff8000000001234
d fff80000deadbeef fff80000deadbeef
d 7ff0000000001234 7ff8000000001234
d fff4000000000001 fffc000000000001
f 00000000 3f2aaac0
f 80000000 3f2aaac0
f 3a800000 3f2ac45b
f 3c400000 3f2be076
f 3d490fdb 3f2fdffc
f 3eaaaaab 3f5547e1
f 3f800000 3faec16a
f bf400000 3f08f210
f 3e7fffff 3f490893
f 4111a2b4 41e884ae
f bdb504f3 3f223812
f 35800000 3f2aaac6
f 7f800000 7f800000
f ff800000 7f800000
f 7fc00000 7fc00000
f ffc00000 ffc00000
f 7fc01234 7fc01234
f ffc0beef ffc0beef
f 7f801234 7fc01234
f ffa00001 ffe00001
l 0000000000000000 0000 aaaaaaaaaaaaa334 3ffe
l 0000000000000000 8000 aaaaaaaaaaaaa334 3ffe
l 8000000000000000 3ff5 aac448d77125a22f 3ffe
l c000000000000000 3ff8 abe07635e2636014 3ffe
l c90fdaa22168c000 3ffa afe0603f2c7adeca 3ffe
l aaaaaaaaaaaaa800 3ffd d7d530ead57df60f 3ffe
l 8000000000000000 3fff 8b3bde9abd7a37d0 4000
l c000000000000000 bffe ebc673f15ad0653b 3ffd
l ffffff0000000000 3ffc c9f526ae1e7b9a34 3ffe
l 91a2b3c4d5e6f000 4002 bce1b52d1f226150 4012
l b504f333f9de6800 bffb a226865f4f72dd64 3ffe
l 8000000000000800 3feb aaaab111115a2e32 3ffe
l 8000000000000000 7fff 8000000000000000 7fff
l 8000000000000000 ffff 8000000000000000 ffff
l c000000000000000 7fff c000000000000000 7fff
l c000000000000000 ffff c000000000000000 ffff
l c000000000001234 7fff c000000000001234 7fff
l c0000000deadbeef ffff c0000000deadbeef ffff
l 8000000000001234 7fff c000000000001234 7fff
l a000000000000001 ffff e000000000000001 ffff
done

Raw output, every rounding mode and x87 precision
default mxcsr 00009fc0 x87cw 037f
d r0 0000000000000000 3fe55555555555bc
d r0 8000000000000000 3fe55555555555bc
d r0 3f50000000000000 3fe558891aee24e4
d r0 3f88000000000000 3fe57c0ec6bc4c6d
d r0 3fa921fb54442d18 3fe5fc0c07e51327
d r0 3fd5555555555555 3feafa4e03049335
d r0 3ff0000000000000 4000764f9f13e118
d r0 bfe8000000000000 3fdecc2bb29c9d9b
d r0 3fcfffffe0000000 3fe93e9a7e408a2e
d r0 40223456789abcde 40f7446791399e5c
d r0 bfb6a09e667f3bcd 3fe444d0d5e7bf64
d r0 3eb0000000000001 3fe5555622222bad
d r0 7ff0000000000000 7ff0000000000000
d r0 fff0000000000000 7ff0000000000000
d r0 7ff8000000000000 7ff8000000000000
d r0 fff8000000000000 fff8000000000000
d r0 7ff8000000001234 7ff8000000001234
d r0 fff80000deadbeef fff80000deadbeef
d r0 7ff0000000001234 7ff8000000001234
d r0 fff4000000000001 fffc000000000001
d r1 0000000000000000 3fe55555555555bc
d r1 8000000000000000 3fe55555555555bc
d r1 3f50000000000000 3fe558891aee24e4
d r1 3f88000000000000 3fe57c0ec6bc4c6c
d r1 3fa921fb54442d18 3fe5fc0c07e51327
d r1 3fd5555555555555 3feafa4e03049334
d r1 3ff0000000000000 4000764f9f13e118
d r1 bfe8000000000000 3fdecc2bb29c9d9b
d r1 3fcfffffe0000000 3fe93e9a7e408a2e
d r1 40223456789abcde 40f7446791399e58
d r1 bfb6a09e667f3bcd 3fe444d0d5e7bf63
d r1 3eb0000000000001 3fe5555622222bad
d r1 7ff0000000000000 7ff0000000000000
d r1 fff0000000000000 7ff0000000000000
d r1 7ff8000000000000 7ff8000000000000
d r1 fff8000000000000 fff8000000000000
d r1 7ff8000000001234 7ff8000000001234
d r1 fff80000deadbeef fff80000deadbeef
d r1 7ff0000000001234 7ff8000000001234
d r1 fff4000000000001 fffc000000000001
d r2 0000000000000000 3fe55555555555bc
d r2 8000000000000000 3fe55555555555bc
d r2 3f50000000000000 3fe558891aee24e5
d r2 3f88000000000000 3fe57c0ec6bc4c6d
d r2 3fa921fb54442d18 3fe5fc0c07e51328
d r2 3fd5555555555555 3feafa4e03049336
d r2 3ff0000000000000 4000764f9f13e119
d r2 bfe8000000000000 3fdecc2bb29c9d9b
d r2 3fcfffffe0000000 3fe93e9a7e408a2f
d r2 40223456789abcde 40f7446791399e5f
d r2 bfb6a09e667f3bcd 3fe444d0d5e7bf64
d r2 3eb0000000000001 3fe5555622222bae
d r2 7ff0000000000000 7ff0000000000000
d r2 fff0000000000000 7ff0000000000000
d r2 7ff8000000000000 7ff8000000000000
d r2 fff8000000000000 fff8000000000000
d r2 7ff8000000001234 7ff8000000001234
d r2 fff80000deadbeef fff80000deadbeef
d r2 7ff0000000001234 7ff8000000001234
d r2 fff4000000000001 fffc000000000001
d r3 0000000000000000 3fe55555555555bc
d r3 8000000000000000 3fe55555555555bc
d r3 3f50000000000000 3fe558891aee24e4
d r3 3f88000000000000 3fe57c0ec6bc4c6c
d r3 3fa921fb54442d18 3fe5fc0c07e51327
d r3 3fd5555555555555 3feafa4e03049334
d r3 3ff0000000000000 4000764f9f13e118
d r3 bfe8000000000000 3fdecc2bb29c9d9b
d r3 3fcfffffe0000000 3fe93e9a7e408a2e
d r3 40223456789abcde 40f7446791399e58
d r3 bfb6a09e667f3bcd 3fe444d0d5e7bf63
d r3 3eb0000000000001 3fe5555622222bad
d r3 7ff0000000000000 7ff0000000000000
d r3 fff0000000000000 7ff0000000000000
d r3 7ff8000000000000 7ff8000000000000
d r3 fff8000000000000 fff8000000000000
d r3 7ff8000000001234 7ff8000000001234
d r3 fff80000deadbeef fff80000deadbeef
d r3 7ff0000000001234 7ff8000000001234
d r3 fff4000000000001 fffc000000000001
f r0 00000000 3f2aaac0
f r0 80000000 3f2aaac0
f r0 3a800000 3f2ac45b
f r0 3c400000 3f2be076
f r0 3d490fdb 3f2fdffc
f r0 3eaaaaab 3f5547e1
f r0 3f800000 3faec16a
f r0 bf400000 3f08f210
f r0 3e7fffff 3f490893
f r0 4111a2b4 41e884ae
f r0 bdb504f3 3f223812
f r0 35800000 3f2aaac6
f r0 7f800000 7f800000
f r0 ff800000 7f800000
f r0 7fc00000 7fc00000
f r0 ffc00000 ffc00000
f r0 7fc01234 7fc01234
f r0 ffc0beef ffc0beef
f r0 7f801234 7fc01234
f r0 ffa00001 ffe00001
f r1 00000000 3f2aaac0
f r1 80000000 3f2aaac0
f r1 3a800000 3f2ac45a
f r1 3c400000 3f2be075
f r1 3d490fdb 3f2fdffb
f r1 3eaaaaab 3f5547e0
f r1 3f800000 3faec169
f r1 bf400000 3f08f20f
f r1 3e7fffff 3f490892
f r1 4111a2b4 41e884ac
f r1 bdb504f3 3f223811
f r1 35800000 3f2aaac6
f r1 7f800000 7f800000
f r1 ff800000 7f800000
f r1 7fc00000 7fc00000
f r1 ffc00000 ffc00000
f r1 7fc01234 7fc01234
f r1 ffc0beef ffc0beef
f r1 7f801234 7fc01234
f r1 ffa00001 ffe00001
f r2 00000000 3f2aaac0
f r2 80000000 3f2aaac0
f r2 3a800000 3f2ac45b
f r2 3c400000 3f2be076
f r2 3d490fdb 3f2fdffc
f r2 3eaaaaab 3f5547e1
f r2 3f800000 3faec16a
f r2 bf400000 3f08f210
f r2 3e7fffff 3f490893
f r2 4111a2b4 41e884ae
f r2 bdb504f3 3f223812
f r2 35800000 3f2aaac7
f r2 7f800000 7f800000
f r2 ff800000 7f800000
f r2 7fc00000 7fc00000
f r2 ffc00000 ffc00000
f r2 7fc01234 7fc01234
f r2 ffc0beef ffc0beef
f r2 7f801234 7fc01234
f r2 ffa00001 ffe00001
f r3 00000000 3f2aaac0
f r3 80000000 3f2aaac0
f r3 3a800000 3f2ac45a
f r3 3c400000 3f2be075
f r3 3d490fdb 3f2fdffb
f r3 3eaaaaab 3f5547e0
f r3 3f800000 3faec169
f r3 bf400000 3f08f20f
f r3 3e7fffff 3f490892
f r3 4111a2b4 41e884ac
f r3 bdb504f3 3f223811
f r3 35800000 3f2aaac6
f r3 7f800000 7f800000
f r3 ff800000 7f800000
f r3 7fc00000 7fc00000
f r3 ffc00000 ffc00000
f r3 7fc01234 7fc01234
f r3 ffc0beef ffc0beef
f r3 7f801234 7fc01234
f r3 ffa00001 ffe00001
l p24 r0 0000000000000000 0000 aaaaab0000000000 3ffe
l p24 r0 0000000000000000 8000 aaaaab0000000000 3ffe
l p24 r0 8000000000000000 3ff5 aac4490000000000 3ffe
l p24 r0 c000000000000000 3ff8 abe0760000000000 3ffe
l p24 r0 c90fdaa22168c000 3ffa afe0600000000000 3ffe
l p24 r0 aaaaaaaaaaaaa800 3ffd d7d5310000000000 3ffe
l p24 r0 8000000000000000 3fff 8b3bdf0000000000 4000
l p24 r0 c000000000000000 bffe ebc6740000000000 3ffd
l p24 r0 ffffff0000000000 3ffc c9f5270000000000 3ffe
l p24 r0 91a2b3c4d5e6f000 4002 bce1b60000000000 4012
l p24 r0 b504f333f9de6800 bffb a226860000000000 3ffe
l p24 r0 8000000000000800 3feb aaaab10000000000 3ffe
l p24 r0 8000000000000000 7fff 8000000000000000 7fff
l p24 r0 8000000000000000 ffff 8000000000000000 ffff
l p24 r0 c000000000000000 7fff c000000000000000 7fff
l p24 r0 c000000000000000 ffff c000000000000000 ffff
l p24 r0 c000000000001234 7fff c000000000001234 7fff
l p24 r0 c0000000deadbeef ffff c0000000deadbeef ffff
l p24 r0 8000000000001234 7fff c000000000001234 7fff
l p24 r0 a000000000000001 ffff e000000000000001 ffff
l p24 r1 0000000000000000 0000 aaaaaa0000000000 3ffe
l p24 r1 0000000000000000 8000 aaaaaa0000000000 3ffe
l p24 r1 8000000000000000 3ff5 aac4480000000000 3ffe
l p24 r1 c000000000000000 3ff8 abe0760000000000 3ffe
l p24 r1 c90fdaa22168c000 3ffa afe0600000000000 3ffe
l p24 r1 aaaaaaaaaaaaa800 3ffd d7d5300000000000 3ffe
l p24 r1 8000000000000000 3fff 8b3bdd0000000000 4000
l p24 r1 c000000000000000 bffe ebc6740000000000 3ffd
l p24 r1 ffffff0000000000 3ffc c9f5260000000000 3ffe
l p24 r1 91a2b3c4d5e6f000 4002 bce1ad0000000000 4012
l p24 r1 b504f333f9de6800 bffb a226860000000000 3ffe
l p24 r1 8000000000000800 3feb aaaab10000000000 3ffe
l p24 r1 8000000000000000 7fff 8000000000000000 7fff
l p24 r1 8000000000000000 ffff 8000000000000000 ffff
l p24 r1 c000000000000000 7fff c000000000000000 7fff
l p24 r1 c000000000000000 ffff c000000000000000 ffff
l p24 r1 c000000000001234 7fff c000000000001234 7fff
l p24 r1 c0000000deadbeef ffff c0000000deadbeef ffff
l p24 r1 8000000000001234 7fff c000000000001234 7fff
l p24 r1 a000000000000001 ffff e000000000000001 ffff
l p24 r2 0000000000000000 0000 aaaaab0000000000 3ffe
l p24 r2 0000000000000000 8000 aaaaab0000000000 3ffe
l p24 r2 8000000000000000 3ff5 aac4490000000000 3ffe
l p24 r2 c000000000000000 3ff8 abe0770000000000 3ffe
l p24 r2 c90fdaa22168c000 3ffa afe0610000000000 3ffe
l p24 r2 aaaaaaaaaaaaa800 3ffd d7d5320000000000 3ffe
l p24 r2 8000000000000000 3fff 8b3be00000000000 4000
l p24 r2 c000000000000000 bffe ebc6740000000000 3ffd
l p24 r2 ffffff0000000000 3ffc c9f5270000000000 3ffe
l p24 r2 91a2b3c4d5e6f000 4002 bce1bd0000000000 4012
l p24 r2 b504f333f9de6800 bffb a226870000000000 3ffe
l p24 r2 8000000000000800 3feb aaaab20000000000 3ffe
l p24 r2 8000000000000000 7fff 8000000000000000 7fff
l p24 r2 8000000000000000 ffff 8000000000000000 ffff
l p24 r2 c000000000000000 7fff c000000000000000 7fff
l p24 r2 c000000000000000 ffff c000000000000000 ffff
l p24 r2 c000000000001234 7fff c000000000001234 7fff
l p24 r2 c0000000deadbeef ffff c0000000deadbeef ffff
l p24 r2 8000000000001234 7fff c000000000001234 7fff
l p24 r2 a000000000000001 ffff e000000000000001 ffff
l p24 r3 0000000000000000 0000 aaaaaa0000000000 3ffe
l p24 r3 0000000000000000 8000 aaaaaa0000000000 3ffe
l p24 r3 8000000000000000 3ff5 aac4480000000000 3ffe
l p24 r3 c000000000000000 3ff8 abe0760000000000 3ffe
l p24 r3 c90fdaa22168c000 3ffa afe0600000000000 3ffe
l p24 r3 aaaaaaaaaaaaa800 3ffd d7d5300000000000 3ffe
l p24 r3 8000000000000000 3fff 8b3bdd0000000000 4000
l p24 r3 c000000000000000 bffe ebc6740000000000 3ffd
l p24 r3 ffffff0000000000 3ffc c9f5260000000000 3ffe
l p24 r3 91a2b3c4d5e6f000 4002 bce1ad0000000000 4012
l p24 r3 b504f333f9de6800 bffb a226860000000000 3ffe
l p24 r3 8000000000000800 3feb aaaab10000000000 3ffe
l p24 r3 8000000000000000 7fff 8000000000000000 7fff
l p24 r3 8000000000000000 ffff 8000000000000000 ffff
l p24 r3 c000000000000000 7fff c000000000000000 7fff
l p24 r3 c000000000000000 ffff c000000000000000 ffff
l p24 r3 c000000000001234 7fff c000000000001234 7fff
l p24 r3 c0000000deadbeef ffff c0000000deadbeef ffff
l p24 r3 8000000000001234 7fff c000000000001234 7fff
l p24 r3 a000000000000001 ffff e000000000000001 ffff
l p53 r0 0000000000000000 0000 aaaaaaaaaaaaa000 3ffe
l p53 r0 0000000000000000 8000 aaaaaaaaaaaaa000 3ffe
l p53 r0 8000000000000000 3ff5 aac448d77125a000 3ffe
l p53 r0 c000000000000000 3ff8 abe07635e2636000 3ffe
l p53 r0 c90fdaa22168c000 3ffa afe0603f2c7ae000 3ffe
l p53 r0 aaaaaaaaaaaaa800 3ffd d7d530ead57df800 3ffe
l p53 r0 8000000000000000 3fff 8b3bde9abd7a3800 4000
l p53 r0 c000000000000000 bffe ebc673f15ad06800 3ffd
l p53 r0 ffffff0000000000 3ffc c9f526ae1e7b9800 3ffe
l p53 r0 91a2b3c4d5e6f000 4002 bce1b52d1f226800 4012
l p53 r0 b504f333f9de6800 bffb a226865f4f72e000 3ffe
l p53 r0 8000000000000800 3feb aaaab111115a3000 3ffe
l p53 r0 8000000000000000 7fff 8000000000000000 7fff
l p53 r0 8000000000000000 ffff 8000000000000000 ffff
l p53 r0 c000000000000000 7fff c000000000000000 7fff
l p53 r0 c000000000000000 ffff c000000000000000 ffff
l p53 r0 c000000000001234 7fff c000000000001234 7fff
l p53 r0 c0000000deadbeef ffff c0000000deadbeef ffff
l p53 r0 8000000000001234 7fff c000000000001234 7fff
l p53 r0 a000000000000001 ffff e000000000000001 ffff
l p53 r1 0000000000000000 0000 aaaaaaaaaaaaa000 3ffe
l p53 r1 0000000000000000 8000 aaaaaaaaaaaaa000 3ffe
l p53 r1 8000000000000000 3ff5 aac448d77125a000 3ffe
l p53 r1 c000000000000000 3ff8 abe07635e2636000 3ffe
l p53 r1 c90fdaa22168c000 3ffa afe0603f2c7ad800 3ffe
l p53 r1 aaaaaaaaaaaaa800 3ffd d7d530ead57df000 3ffe
l p53 r1 8000000000000000 3fff 8b3bde9abd7a3000 4000
l p53 r1 c000000000000000 bffe ebc673f15ad06800 3ffd
l p53 r1 ffffff0000000000 3ffc c9f526ae1e7b9800 3ffe
l p53 r1 91a2b3c4d5e6f000 4002 bce1b52d1f221800 4012
l p53 r1 b504f333f9de6800 bffb a226865f4f72d800 3ffe
l p53 r1 8000000000000800 3feb aaaab111115a2800 3ffe
l p53 r1 8000000000000000 7fff 8000000000000000 7fff
l p53 r1 8000000000000000 ffff 8000000000000000 ffff
l p53 r1 c000000000000000 7fff c000000000000000 7fff
l p53 r1 c000000000000000 ffff c000000000000000 ffff
l p53 r1 c000000000001234 7fff c000000000001234 7fff
l p53 r1 c0000000deadbeef ffff c0000000deadbeef ffff
l p53 r1 8000000000001234 7fff c000000000001234 7fff
l p53 r1 a000000000000001 ffff e000000000000001 ffff
l p53 r2 0000000000000000 0000 aaaaaaaaaaaaa800 3ffe
l p53 r2 0000000000000000 8000 aaaaaaaaaaaaa800 3ffe
l p53 r2 8000000000000000 3ff5 aac448d77125a800 3ffe
l p53 r2 c000000000000000 3ff8 abe07635e2636800 3ffe
l p53 r2 c90fdaa22168c000 3ffa afe0603f2c7ae000 3ffe
l p53 r2 aaaaaaaaaaaaa800 3ffd d7d530ead57e0000 3ffe
l p53 r2 8000000000000000 3fff 8b3bde9abd7a4800 4000
l p53 r2 c000000000000000 bffe ebc673f15ad06800 3ffd
l p53 r2 ffffff0000000000 3ffc c9f526ae1e7ba000 3ffe
l p53 r2 91a2b3c4d5e6f000 4002 bce1b52d1f229800 4012
l p53 r2 b504f333f9de6800 bffb a226865f4f72e000 3ffe
l p53 r2 8000000000000800 3feb aaaab111115a3000 3ffe
l p53 r2 8000000000000000 7fff 8000000000000000 7fff
l p53 r2 8000000000000000 ffff 8000000000000000 ffff
l p53 r2 c000000000000000 7fff c000000000000000 7fff
l p53 r2 c000000000000000 ffff c000000000000000 ffff
l p53 r2 c000000000001234 7fff c000000000001234 7fff
l p53 r2 c0000000deadbeef ffff c0000000deadbeef ffff
l p53 r2 8000000000001234 7fff c000000000001234 7fff
l p53 r2 a000000000000001 ffff e000000000000001 ffff
l p53 r3 0000000000000000 0000 aaaaaaaaaaaaa000 3ffe
l p53 r3 0000000000000000 8000 aaaaaaaaaaaaa000 3ffe
l p53 r3 8000000000000000 3ff5 aac448d77125a000 3ffe
l p53 r3 c000000000000000 3ff8 abe07635e2636000 3ffe
l p53 r3 c90fdaa22168c000 3ffa afe0603f2c7ad800 3ffe
l p53 r3 aaaaaaaaaaaaa800 3ffd d7d530ead57df000 3ffe
l p53 r3 8000000000000000 3fff 8b3bde9abd7a3000 4000
l p53 r3 c000000000000000 bffe ebc673f15ad06000 3ffd
l p53 r3 ffffff0000000000 3ffc c9f526ae1e7b9800 3ffe
l p53 r3 91a2b3c4d5e6f000 4002 bce1b52d1f221800 4012
l p53 r3 b504f333f9de6800 bffb a226865f4f72d800 3ffe
l p53 r3 8000000000000800 3feb aaaab111115a2800 3ffe
l p53 r3 8000000000000000 7fff 8000000000000000 7fff
l p53 r3 8000000000000000 ffff 8000000000000000 ffff
l p53 r3 c000000000000000 7fff c000000000000000 7fff
l p53 r3 c000000000000000 ffff c000000000000000 ffff
l p53 r3 c000000000001234 7fff c000000000001234 7fff
l p53 r3 c0000000deadbeef ffff c0000000deadbeef ffff
l p53 r3 8000000000001234 7fff c000000000001234 7fff
l p53 r3 a000000000000001 ffff e000000000000001 ffff
l p64 r0 0000000000000000 0000 aaaaaaaaaaaaa334 3ffe
l p64 r0 0000000000000000 8000 aaaaaaaaaaaaa334 3ffe
l p64 r0 8000000000000000 3ff5 aac448d77125a22f 3ffe
l p64 r0 c000000000000000 3ff8 abe07635e2636014 3ffe
l p64 r0 c90fdaa22168c000 3ffa afe0603f2c7adeca 3ffe
l p64 r0 aaaaaaaaaaaaa800 3ffd d7d530ead57df60f 3ffe
l p64 r0 8000000000000000 3fff 8b3bde9abd7a37d0 4000
l p64 r0 c000000000000000 bffe ebc673f15ad0653b 3ffd
l p64 r0 ffffff0000000000 3ffc c9f526ae1e7b9a34 3ffe
l p64 r0 91a2b3c4d5e6f000 4002 bce1b52d1f226150 4012
l p64 r0 b504f333f9de6800 bffb a226865f4f72dd64 3ffe
l p64 r0 8000000000000800 3feb aaaab111115a2e32 3ffe
l p64 r0 8000000000000000 7fff 8000000000000000 7fff
l p64 r0 8000000000000000 ffff 8000000000000000 ffff
l p64 r0 c000000000000000 7fff c000000000000000 7fff
l p64 r0 c000000000000000 ffff c000000000000000 ffff
l p64 r0 c000000000001234 7fff c000000000001234 7fff
l p64 r0 c0000000deadbeef ffff c0000000deadbeef ffff
l p64 r0 8000000000001234 7fff c000000000001234 7fff
l p64 r0 a000000000000001 ffff e000000000000001 ffff
l p64 r1 0000000000000000 0000 aaaaaaaaaaaaa334 3ffe
l p64 r1 0000000000000000 8000 aaaaaaaaaaaaa334 3ffe
l p64 r1 8000000000000000 3ff5 aac448d77125a22f 3ffe
l p64 r1 c000000000000000 3ff8 abe07635e2636013 3ffe
l p64 r1 c90fdaa22168c000 3ffa afe0603f2c7adec9 3ffe
l p64 r1 aaaaaaaaaaaaa800 3ffd d7d530ead57df60e 3ffe
l p64 r1 8000000000000000 3fff 8b3bde9abd7a37cf 4000
l p64 r1 c000000000000000 bffe ebc673f15ad0653a 3ffd
l p64 r1 ffffff0000000000 3ffc c9f526ae1e7b9a34 3ffe
l p64 r1 91a2b3c4d5e6f000 4002 bce1b52d1f226149 4012
l p64 r1 b504f333f9de6800 bffb a226865f4f72dd64 3ffe
l p64 r1 8000000000000800 3feb aaaab111115a2e31 3ffe
l p64 r1 8000000000000000 7fff 8000000000000000 7fff
l p64 r1 8000000000000000 ffff 8000000000000000 ffff
l p64 r1 c000000000000000 7fff c000000000000000 7fff
l p64 r1 c000000000000000 ffff c000000000000000 ffff
l p64 r1 c000000000001234 7fff c000000000001234 7fff
l p64 r1 c0000000deadbeef ffff c0000000deadbeef ffff
l p64 r1 8000000000001234 7fff c000000000001234 7fff
l p64 r1 a000000000000001 ffff e000000000000001 ffff
l p64 r2 0000000000000000 0000 aaaaaaaaaaaaa334 3ffe
l p64 r2 0000000000000000 8000 aaaaaaaaaaaaa334 3ffe
l p64 r2 8000000000000000 3ff5 aac448d77125a230 3ffe
l p64 r2 c000000000000000 3ff8 abe07635e2636014 3ffe
l p64 r2 c90fdaa22168c000 3ffa afe0603f2c7adeca 3ffe
l p64 r2 aaaaaaaaaaaaa800 3ffd d7d530ead57df610 3ffe
l p64 r2 8000000000000000 3fff 8b3bde9abd7a37d1 4000
l p64 r2 c000000000000000 bffe ebc673f15ad0653a 3ffd
l p64 r2 ffffff0000000000 3ffc c9f526ae1e7b9a35 3ffe
l p64 r2 91a2b3c4d5e6f000 4002 bce1b52d1f226157 4012
l p64 r2 b504f333f9de6800 bffb a226865f4f72dd65 3ffe
l p64 r2 8000000000000800 3feb aaaab111115a2e32 3ffe
l p64 r2 8000000000000000 7fff 8000000000000000 7fff
l p64 r2 8000000000000000 ffff 8000000000000000 ffff
l p64 r2 c000000000000000 7fff c000000000000000 7fff
l p64 r2 c000000000000000 ffff c000000000000000 ffff
l p64 r2 c000000000001234 7fff c000000000001234 7fff
l p64 r2 c0000000deadbeef ffff c0000000deadbeef ffff
l p64 r2 8000000000001234 7fff c000000000001234 7fff
l p64 r2 a000000000000001 ffff e000000000000001 ffff
l p64 r3 0000000000000000 0000 aaaaaaaaaaaaa334 3ffe
l p64 r3 0000000000000000 8000 aaaaaaaaaaaaa334 3ffe
l p64 r3 8000000000000000 3ff5 aac448d77125a22f 3ffe
l p64 r3 c000000000000000 3ff8 abe07635e2636013 3ffe
l p64 r3 c90fdaa22168c000 3ffa afe0603f2c7adec9 3ffe
l p64 r3 aaaaaaaaaaaaa800 3ffd d7d530ead57df60e 3ffe
l p64 r3 8000000000000000 3fff 8b3bde9abd7a37cf 4000
l p64 r3 c000000000000000 bffe ebc673f15ad0653b 3ffd
l p64 r3 ffffff0000000000 3ffc c9f526ae1e7b9a34 3ffe
l p64 r3 91a2b3c4d5e6f000 4002 bce1b52d1f226149 4012
l p64 r3 b504f333f9de6800 bffb a226865f4f72dd64 3ffe
l p64 r3 8000000000000800 3feb aaaab111115a2e31 3ffe
l p64 r3 8000000000000000 7fff 8000000000000000 7fff
l p64 r3 8000000000000000 ffff 8000000000000000 ffff
l p64 r3 c000000000000000 7fff c000000000000000 7fff
l p64 r3 c000000000000000 ffff c000000000000000 ffff
l p64 r3 c000000000001234 7fff c000000000001234 7fff
l p64 r3 c0000000deadbeef ffff c0000000deadbeef ffff
l p64 r3 8000000000001234 7fff c000000000001234 7fff
l p64 r3 a000000000000001 ffff e000000000000001 ffff
done

Probe source, default modes
#include <dlfcn.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

static const uint64_t DoubleInputs[] = {
    0x0000000000000000ull, 0x8000000000000000ull, 0x3f50000000000000ull, 0x3f88000000000000ull, 0x3fa921fb54442d18ull,
    0x3fd5555555555555ull, 0x3ff0000000000000ull, 0xbfe8000000000000ull, 0x3fcfffffe0000000ull, 0x40223456789abcdeull,
    0xbfb6a09e667f3bcdull, 0x3eb0000000000001ull, 0x7ff0000000000000ull, 0xfff0000000000000ull, 0x7ff8000000000000ull,
    0xfff8000000000000ull, 0x7ff8000000001234ull, 0xfff80000deadbeefull, 0x7ff0000000001234ull, 0xfff4000000000001ull};

static const uint32_t FloatInputs[] = {
    0x00000000u, 0x80000000u, 0x3a800000u, 0x3c400000u, 0x3d490fdbu, 0x3eaaaaabu, 0x3f800000u, 0xbf400000u, 0x3e7fffffu, 0x4111a2b4u,
    0xbdb504f3u, 0x35800000u, 0x7f800000u, 0xff800000u, 0x7fc00000u, 0xffc00000u, 0x7fc01234u, 0xffc0beefu, 0x7f801234u, 0xffa00001u};

static const struct {
    uint64_t mantissa;
    uint16_t exponent;
} ExtendedInputs[] = {
    {0x0000000000000000ull, 0x0000}, {0x0000000000000000ull, 0x8000}, {0x8000000000000000ull, 0x3ff5}, {0xc000000000000000ull, 0x3ff8},
    {0xc90fdaa22168c000ull, 0x3ffa}, {0xaaaaaaaaaaaaa800ull, 0x3ffd}, {0x8000000000000000ull, 0x3fff}, {0xc000000000000000ull, 0xbffe},
    {0xffffff0000000000ull, 0x3ffc}, {0x91a2b3c4d5e6f000ull, 0x4002}, {0xb504f333f9de6800ull, 0xbffb}, {0x8000000000000800ull, 0x3feb},
    {0x8000000000000000ull, 0x7fff}, {0x8000000000000000ull, 0xffff}, {0xc000000000000000ull, 0x7fff}, {0xc000000000000000ull, 0xffff},
    {0xc000000000001234ull, 0x7fff}, {0xc0000000deadbeefull, 0xffff}, {0x8000000000001234ull, 0x7fff}, {0xa000000000000001ull, 0xffff}};

static void emit(FILE* file, const char* line) {
    fputs(line, stdout);
    if (file) fputs(line, file);
}

int main(void) {
    char line[160];
    FILE* file = fopen("/data/anyps5_logpoly.txt", "w");
    void* module = dlopen("libSceLibcInternal.sprx", RTLD_LAZY);
    if (!module) {
        snprintf(line, sizeof(line), "dlopen failed: %s\n", dlerror());
        emit(file, line);
        if (file) fclose(file);
        return 1;
    }
    double (*logpoly)(double) = dlsym(module, "_Logpoly");
    float (*flogpoly)(float) = dlsym(module, "_FLogpoly");
    long double (*llogpoly)(long double) = dlsym(module, "_LLogpoly");
    snprintf(line, sizeof(line), "symbols %d %d %d\n", logpoly != 0, flogpoly != 0, llogpoly != 0);
    emit(file, line);

    for (size_t i = 0; logpoly && i < sizeof(DoubleInputs) / sizeof(DoubleInputs[0]); ++i) {
        double x, y;
        uint64_t bits;
        memcpy(&x, &DoubleInputs[i], sizeof(x));
        y = logpoly(x);
        memcpy(&bits, &y, sizeof(bits));
        snprintf(line, sizeof(line), "d %016llx %016llx\n", (unsigned long long)DoubleInputs[i], (unsigned long long)bits);
        emit(file, line);
    }
    for (size_t i = 0; flogpoly && i < sizeof(FloatInputs) / sizeof(FloatInputs[0]); ++i) {
        float x, y;
        uint32_t bits;
        memcpy(&x, &FloatInputs[i], sizeof(x));
        y = flogpoly(x);
        memcpy(&bits, &y, sizeof(bits));
        snprintf(line, sizeof(line), "f %08x %08x\n", FloatInputs[i], bits);
        emit(file, line);
    }
    for (size_t i = 0; llogpoly && i < sizeof(ExtendedInputs) / sizeof(ExtendedInputs[0]); ++i) {
        long double x = 0, y;
        uint64_t mantissa = 0;
        uint16_t exponent = 0;
        memcpy(&x, &ExtendedInputs[i].mantissa, 8);
        memcpy((unsigned char*)&x + 8, &ExtendedInputs[i].exponent, 2);
        y = llogpoly(x);
        memcpy(&mantissa, &y, 8);
        memcpy(&exponent, (unsigned char*)&y + 8, 2);
        snprintf(line, sizeof(line), "l %016llx %04x %016llx %04x\n", (unsigned long long)ExtendedInputs[i].mantissa,
                 ExtendedInputs[i].exponent, (unsigned long long)mantissa, exponent);
        emit(file, line);
    }
    emit(file, "done\n");
    if (file) fclose(file);
    return 0;
}
Probe source, modes
#include <dlfcn.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

static const uint64_t DoubleInputs[] = {
    0x0000000000000000ull, 0x8000000000000000ull, 0x3f50000000000000ull, 0x3f88000000000000ull, 0x3fa921fb54442d18ull,
    0x3fd5555555555555ull, 0x3ff0000000000000ull, 0xbfe8000000000000ull, 0x3fcfffffe0000000ull, 0x40223456789abcdeull,
    0xbfb6a09e667f3bcdull, 0x3eb0000000000001ull, 0x7ff0000000000000ull, 0xfff0000000000000ull, 0x7ff8000000000000ull,
    0xfff8000000000000ull, 0x7ff8000000001234ull, 0xfff80000deadbeefull, 0x7ff0000000001234ull, 0xfff4000000000001ull};

static const uint32_t FloatInputs[] = {
    0x00000000u, 0x80000000u, 0x3a800000u, 0x3c400000u, 0x3d490fdbu, 0x3eaaaaabu, 0x3f800000u, 0xbf400000u, 0x3e7fffffu, 0x4111a2b4u,
    0xbdb504f3u, 0x35800000u, 0x7f800000u, 0xff800000u, 0x7fc00000u, 0xffc00000u, 0x7fc01234u, 0xffc0beefu, 0x7f801234u, 0xffa00001u};

static const struct {
    uint64_t mantissa;
    uint16_t exponent;
} ExtendedInputs[] = {
    {0x0000000000000000ull, 0x0000}, {0x0000000000000000ull, 0x8000}, {0x8000000000000000ull, 0x3ff5}, {0xc000000000000000ull, 0x3ff8},
    {0xc90fdaa22168c000ull, 0x3ffa}, {0xaaaaaaaaaaaaa800ull, 0x3ffd}, {0x8000000000000000ull, 0x3fff}, {0xc000000000000000ull, 0xbffe},
    {0xffffff0000000000ull, 0x3ffc}, {0x91a2b3c4d5e6f000ull, 0x4002}, {0xb504f333f9de6800ull, 0xbffb}, {0x8000000000000800ull, 0x3feb},
    {0x8000000000000000ull, 0x7fff}, {0x8000000000000000ull, 0xffff}, {0xc000000000000000ull, 0x7fff}, {0xc000000000000000ull, 0xffff},
    {0xc000000000001234ull, 0x7fff}, {0xc0000000deadbeefull, 0xffff}, {0x8000000000001234ull, 0x7fff}, {0xa000000000000001ull, 0xffff}};


static unsigned get_mxcsr(void) { unsigned v; __asm__ volatile("stmxcsr %0" : "=m"(v)); return v; }
static void set_mxcsr(unsigned v) { __asm__ volatile("ldmxcsr %0" : : "m"(v)); }
static unsigned short get_cw(void) { unsigned short v; __asm__ volatile("fnstcw %0" : "=m"(v)); return v; }
static void set_cw(unsigned short v) { __asm__ volatile("fldcw %0" : : "m"(v)); }

#define COUNT 20
static uint64_t DoubleResults[4][COUNT];
static uint32_t FloatResults[4][COUNT];
static uint64_t ExtendedMantissa[12][COUNT];
static uint16_t ExtendedExponent[12][COUNT];
static const unsigned short Precision[3] = {0x000, 0x200, 0x300};
static const int PrecisionBits[3] = {24, 53, 64};

int main(void) {
    void* module = dlopen("libSceLibcInternal.sprx", RTLD_LAZY);
    if (!module) {
        printf("dlopen failed: %s\n", dlerror());
        return 1;
    }
    double (*logpoly)(double) = dlsym(module, "_Logpoly");
    float (*flogpoly)(float) = dlsym(module, "_FLogpoly");
    long double (*llogpoly)(long double) = dlsym(module, "_LLogpoly");
    if (!logpoly || !flogpoly || !llogpoly) {
        printf("dlsym failed\n");
        return 1;
    }
    const unsigned mxcsr = get_mxcsr();
    const unsigned short cw = get_cw();

    for (unsigned rounding = 0; rounding < 4; ++rounding) {
        for (int i = 0; i < COUNT; ++i) {
            double x, y;
            float fx, fy;
            memcpy(&x, &DoubleInputs[i], 8);
            memcpy(&fx, &FloatInputs[i], 4);
            set_mxcsr((mxcsr & ~0x6000u) | (rounding << 13));
            y = logpoly(x);
            fy = flogpoly(fx);
            set_mxcsr(mxcsr);
            memcpy(&DoubleResults[rounding][i], &y, 8);
            memcpy(&FloatResults[rounding][i], &fy, 4);
        }
    }
    for (unsigned precision = 0; precision < 3; ++precision) {
        for (unsigned rounding = 0; rounding < 4; ++rounding) {
            for (int i = 0; i < COUNT; ++i) {
                long double x = 0, y;
                memcpy(&x, &ExtendedInputs[i].mantissa, 8);
                memcpy((unsigned char*)&x + 8, &ExtendedInputs[i].exponent, 2);
                set_cw((cw & ~0x0f00) | Precision[precision] | (rounding << 10));
                y = llogpoly(x);
                set_cw(cw);
                memcpy(&ExtendedMantissa[precision * 4 + rounding][i], &y, 8);
                memcpy(&ExtendedExponent[precision * 4 + rounding][i], (unsigned char*)&y + 8, 2);
            }
        }
    }

    printf("default mxcsr %08x x87cw %04x\n", mxcsr, cw);
    for (unsigned rounding = 0; rounding < 4; ++rounding)
        for (int i = 0; i < COUNT; ++i) printf("d r%u %016llx %016llx\n", rounding, (unsigned long long)DoubleInputs[i], (unsigned long long)DoubleResults[rounding][i]);
    for (unsigned rounding = 0; rounding < 4; ++rounding)
        for (int i = 0; i < COUNT; ++i) printf("f r%u %08x %08x\n", rounding, FloatInputs[i], FloatResults[rounding][i]);
    for (unsigned precision = 0; precision < 3; ++precision)
        for (unsigned rounding = 0; rounding < 4; ++rounding)
            for (int i = 0; i < COUNT; ++i)
                printf("l p%d r%u %016llx %04x %016llx %04x\n", PrecisionBits[precision], rounding, (unsigned long long)ExtendedInputs[i].mantissa,
                       ExtendedInputs[i].exponent, (unsigned long long)ExtendedMantissa[precision * 4 + rounding][i], ExtendedExponent[precision * 4 + rounding][i]);
    printf("done\n");
    return 0;
}

@PrivacyOnion PrivacyOnion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against d65f6da22e:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_libc_internal_logpoly_tests built cleanly.
  • CTest (guest_libc_internal_logpoly):
    1/1 Test #4351: guest_libc_internal_logpoly ......   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceLibcInternal/Export.cpp, core/libs/prx/libSceLibcInternal/include/MathInternals.hpp, core/libs/prx/libSceLibcInternal/Logpoly.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified _Logpoly and _FLogpoly implementations in Logpoly.cpp evaluate Horner's scheme using std::fma in order matching disassembly (0xd84d0 and 0xd8510) and probe measurements across all rounding modes
    • Verified _LLogpoly implementation in Logpoly.cpp delegates to _LPoly_nid_postfix with LibcDetail::LogPolynomial and degree 7 (size - 1) matching disassembly 0x47ce0
    • Verified function prototypes in MathInternals.hpp match caller conventions and export signatures (float, double, long double returns with respective scalar arguments)
    • Verified technical debt fragment docs/dev/debt/changes/feat-libsce-libcinternal-logpoly.md correctly updates Additional imported names and records functional implementation with firmware test details
    • Verified comprehensive unit tests in GuestLibcInternalLogpoly.cpp covering normal, subnormal, infinity, NaN, and MXCSR/x87 rounding and precision control modes

Looks Good To Me

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

Nothing blocks this change; the targeted source review found no verified defect, and the reported console measurements support the implementation.

What I ran

Reviewed head d65f6da22ecee54a16db20ba46fd1efc8d5a9cf1 using the prepared diff and repository reader repo_read.py. No commands or tests were run in this review.

Read the full prepared diff, description, commit list, manifest, and all seven changed files listed in the manifest. Also read the declarations of _LPoly_nid_postfix, its implementation, the LogPolynomial table, and the CMake test registration context. No changed files were excluded.

Results

Check Result Note
Targeted source review passed No verified defect found
Tests in this review not run Author-reported test results only
Console behavior not run Description reports firmware 13.40 measurements

Findings

Blocking

None.

Non-blocking

None.

Not verified

This review did not run the test suite, validate the reported PS5 measurements, or inspect behavior on other firmware, Linux, or macOS. The author reports the logpoly test, related tests, conventions check, and debt check passed; those results were not independently run here.

To get this to a good state

Nothing is required.

@github-actions

Copy link
Copy Markdown

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.

Pull request Shared files not compared
PR 13778 core/libs/prx/libSceLibcInternal/CMakeLists.txt
PR 17300 core/libs/prx/libSceLibcInternal/Export.cpp
PR 17746 core/libs/prx/libSceLibcInternal/CMakeLists.txt
PR 18135 core/libs/prx/libSceLibcInternal/CMakeLists.txt
core/libs/prx/libSceLibcInternal/Export.cpp
PR 19434 core/libs/prx/libSceLibcInternal/CMakeLists.txt
PR 19602 core/libs/prx/libSceLibcInternal/CMakeLists.txt
PR 21704 core/libs/prx/libSceLibcInternal/CMakeLists.txt
core/libs/prx/libSceLibcInternal/Export.cpp
core/libs/prx/libSceLibcInternal/include/MathInternals.hpp

@oneandonlydean
oneandonlydean merged commit cbbfdb9 into boykopovar:main Nov 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants