Replace custom ctz() with C++20 std::countr_zero#813
Conversation
WalkthroughReplaced the project-local trailing-zero utility with C++20 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (6)
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 |
1655036 to
9ca1a1c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #813 +/- ##
==========================================
+ Coverage 98.30% 98.39% +0.09%
==========================================
Files 35 35
Lines 6497 6494 -3
==========================================
+ Hits 6387 6390 +3
+ Misses 110 104 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
69c2f59 to
487514d
Compare
Remove the custom platform-specific count trailing zeros implementation and use std::countr_zero from the <bit> header instead. This also enables upgrading shared_len() and get_shared_length() to full constexpr, since std::countr_zero is constexpr on all platforms including MSVC. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
487514d to
819c14a
Compare
|



Remove the custom platform-specific count trailing zeros implementation
and use std::countr_zero from the header instead.
This also enables upgrading shared_len() and get_shared_length() to
full constexpr, since std::countr_zero is constexpr on all platforms
including MSVC.
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.