Repository navigation
Conversation
Implement peekBit16, flushBit16, getBit16, getBool16, getBit16s and getBit32 over the BitIOInfo layout used by readIS and writeIS, following the pinned jxrlib reference. A differential test compares them with the vendored reference.
Progress report (b2a4784 → 85cc880)📈 System libraries: 26.27% (+0.02%, +6 implemented functions) ✅ 6 implemented
Changed libraries (implemented exports)
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Implements
peekBit16,flushBit16,getBit16,getBool16,getBit16sandgetBit32(libSceJxr NIDsdNGYFo5f1xw,yCAh+u4aq4E,-W7g+KymzGw,Wt5X6GvjCf4,8BfHQcmjyGkand4XveBXc4t2c) over theBitIOInfolayout already used byreadISandwriteIS, following the non-ARM bit reader in the pinned jxrlibstrcodec.c. They threwNotImplemented_nid_no_patchas parameterless placeholders before; those and their declarations are replaced by real prototypes, anddocs/dev/debt/libSceJxr.mdgoes from 132 to 126 additional exports.bitsUsed >> 3bytes and wrapped with theiMaskpointer mask, exactly asFLUSHBIT16does.getBit16sflushes only the magnitude width when the peeked value is below 2, andgetBit32splits widths above 16.std::invalid_argumentis thrown and the state is left unchanged: a null state, a width of 0 or above 16 forpeekBit16andgetBit16, above 16 forflushBit16, 16 or more forgetBit16s, 0 or above 32 forgetBit32, and a null window after a flush. This is listed in the debt doc with pinned source links. The prototypes are inferred from the shared names; nothing was measured on a PS5.guest_jxr_bit_readerchecks hand-computed values and ring wrap-around, then runs 256,000 random operations against the natively built vendored jxrlib on identical state and compares results and all 48 bytes of state after every step. It also checks the rejected arguments.Tested
Linux x86_64, GCC 14.2 (g++ extracted from Debian trixie packages),
-DBUILD_TESTING=ON, full configure with all submodules. Hardware and titles: not tested.libSceJxrand the Jxr test executables.ctest -R jxrpasses all 10 tests,guest_jxr_bit_readerin 0.01 s.core/libs/tests/test_public_headers.py --audit-onlypasses (one declaration per export).tools/check_conventions.py --base origin/mainandtools/check_test_registration.pypass.tools/pr_overlap.py --branch feat/jxr-bit-readerfinds no PR with the same exports or new files. It reports textual overlap only with feat(libSceJxr): implement PKAlloc boykopovar/AnyPS5#14425 (PKAlloc) and feat(libSceJxr): implement WMPAlloc, WMPFree and the memory stream boykopovar/AnyPS5#14631 (WMPAlloc, WMPFree and the memory stream), indocs/dev/debt/libSceJxr.mdand, for feat(libSceJxr): implement WMPAlloc, WMPFree and the memory stream boykopovar/AnyPS5#14631, near the top ofExport.cpp; neither implements these exports.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)