Rounding improvements for log2 and log256 - #106
Conversation
WalkthroughRefactored logarithm rounding logic in macros.move by replacing boolean decision functions (log2_should_round_up, log256_should_round_up) with new direct-result helpers (round_log2_to_nearest, round_log256_to_nearest) that return the rounded logarithm value directly, consolidating rounding behavior into single functions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
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: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-11-04T14:38:12.309ZApplied to files:
🔇 Additional comments (4)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
==========================================
- Coverage 95.35% 95.26% -0.09%
==========================================
Files 13 13
Lines 1227 1204 -23
Branches 350 340 -10
==========================================
- Hits 1170 1147 -23
Misses 40 40
Partials 17 17
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:
|
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.