2 Commits
Author SHA1 Message Date
ArzarothandClaude Opus 5.5 6de72026a5 [champions/soft-double-sqrt] feat(libs): sqrt for games with software doubles
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 05:15:32 +01:00
Thomas MartinandClaude Opus 5.5 163e472342 Native libraries: the C library and libm (phase 3, batch A 1)
runtime/libs (bozo/libs): native functions bound by the game's symbol names, on a Guest that journals every write.
bozo-run --native checks each native call against its record (result registers, every byte written, cycles,
operations) and keeps native state in step with the calls the log still answers.

libc: memcpy, memset, strlen, strchr, strcpy, strcmp, strncat, sprintf, printf, malloc/free (the reference's heap:
16-byte first fit from SetupHeap's result, no headers; the reference's libmpeg takes 0x600 per sceMpegCreate),
rand/srand (the reference's 64-bit LCG, not the ELF's newlib rand). libm: sqrt, __ieee754_rem_pio2f (the reference's
single-step reduction), __kernel_sinf/cosf (the Universal CRT's sinf/cosf of x + y; open point L1 elsewhere).

boot: 242,588 calls native, match1p: 10,840,985, 0 divergences; both still match every frame and record.
docs/specs/libraries.md sections 1-3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:14:34 +01:00