BC1: lane 1 is the index reference #11
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Ahmet-Dedeler--bcpack-rs!11
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/11/head"
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?
@Ahmet-Dedeler on GitHub · 2026-11-26 02:52 UTC · original
Ahmet-Dedeler:fix/bc1-index-reference→master· +122 −18 · 7 files · 1 commits · merged 2026-11-26 02:53 UTCFixes #10.
The BC1 assembler ignored lane 1 and took the endpoint reference straight from lane 0. The BC3, BC4 and BC5 path already reads both lanes through
format::references, and BC1 works the same way:x(blocks back, 0 = none)x + unzigzag(lane 0), mod 256i - xWhat changes for real data: nothing that's been measured. Lane 1 was 0 in every retail chunk checked, and with lane 1 = 0 the output is the same by construction. It matters for streams that do use lane 1, like other encoders' output, and for anyone using bcpack-rs as a bit-exact oracle.
Tests
bc1_lane1_index_reference: tyr0nsur's two-block case from #10. With lane 1 = 1 the second block is nowa1 17 5d f0 0a 0a 5f f5, the output reported for VIctory's assembler. With lane 1 = 0 it's unchanged (00 00 00 00 aa aa aa aa).cargo test --release: all pass.python3 python/bcpack.py selftest: ok.tools/retail/.Spec section 5.1 and the lane table now describe lane 1.
@coderabbitai[bot] on GitHub · 2026-11-26 02:53 UTC · original
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 02:53 UTC · original · edited 2026-11-26 02:56 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
245e0c7ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 02:56 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
245e0c751eℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@ -233,0 +241,4 @@let (ref_line, ref_t) = if x == 0 {(0, false)} else if x <= i {(lines[(i - x) & 255], tainted[(i - x) & 255])@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 02:56 UTC · original
When a reference uses a prior block whose
taintedbit came only from the other predictor—for example, an index reference to a block with an unfitted endpoint—this propagates uncertainty even though index line positions do not depend on endpoints, and endpoints do not depend on index lines. That overcountsunfitted_blocksand can make the scan’scleantally reject otherwise fitted output; keep separate taint histories and combine them only when counting the current block.Useful? React with 👍 / 👎.