Repository navigation
Conversation
3f07fea to
39a6c69
Compare
|
Review recommendation: close or replace this version. Prefer #33 as the single public pair-to-byte API. Both implementations produce 20 policy-compiled bytes checked and 10 unchecked; their bytecode is not identical, but this PR provides no size advantage. #33 also has an active dedicated metric check. Preserve any additional useful tests there rather than maintaining two overlapping helpers. September 11 local validation (unchanged PR head): Reviewed commit: |
|
Closing as superseded by merged PR #33, which is the canonical |
Summary
u4_nibbles_to_byteto pack a high/low nibble pair into one byteValidation
cargo test --locked arithmetic::u4::bits::tests::exhaustive_nibble_pairs_pack_to_bytescargo test --locked arithmetic::u4::bits::tests::checked_nibble_pair_rejects_malformed_inputscargo test --locked --test primitive_metricspython3 tools/kb.py validatecargo fmt --checkgit diff --checkThe full repository test suite was intentionally not run; the focused primitive and metric checks pass. Dynamic opcode counting is unavailable in the local executor, so the documentation reports static non-push counts.