docs: ctpop NatSpec, accurate H01 comment, correct README publish section#31
docs: ctpop NatSpec, accurate H01 comment, correct README publish section#31thedavidmeister wants to merge 1 commit into
Conversation
… README publish section ctpop() and ctpopSlow() gain @param/@return; the CTPOP_H01 comment now states what the constant does in the SWAR sum; the README Publish section names the real Package Release workflow and its push-to-main trigger instead of a nonexistent tag-triggered workflow. Closes #22 Closes #23 Closes #27 Closes #28 Co-Authored-By: Claude <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 24 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Closes #22
Closes #23
Closes #27
Closes #28
Documentation-only batch over
src/lib/LibCtPop.soland the README:ctpop()andctpopSlow()gain@param/@returnNatSpec.CTPOP_H01comment (1 bytes for ctpop) now states what the constant actually does: every byte set to 0x01 so the SWAR multiply sums the per-byte bit counts into the top byte, which the final>> 248extracts.publish-soldeer.yamland told contributors to tagv<x.y.z>; the actual workflow isPackage Release, triggered on push tomain, delegating to rainix's reusable autopublish withsoldeer-package: rain-math-binary.QA
forge fmt --checkclean and the full suite is 6/6 green at this head (nix develop github:rainlanguage/rainix#sol-shell -c forge test), identical to base.x = (x * CTPOP_H01) >> 248and explains why thetype(uint256).maxcase is special-cased (a count of 256 overflows the top byte).@returnwording ("number of bits set") is the Hamming-weight definition the file already cites..github/workflows/package-release.yaml:on: push: branches: [main], workflow namePackage Release, explicitsoldeer-package: rain-math-binaryinput.🤖 Generated with Claude Code