Skip to content

use a more straightforward bit counting operaration #311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

folkertdev
Copy link
Collaborator

based on llvm-mca, this is a bit better (but I can't measure it), but also I think it's just clearer. I've also removed some unsafe casting that we can replace with safe logic that generates the same assembly

based on llvm-mca, this is a bit better (it's also shorter)

- old: https://godbolt.org/z/ce9cxdz5c
- new: https://godbolt.org/z/15Kavd9xn
@folkertdev folkertdev requested a review from bjorn3 February 28, 2025 15:19
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
zlib-rs/src/deflate/compare256.rs 98.06% <100.00%> (-0.14%) ⬇️

... and 11 files with indirect coverage changes

@folkertdev folkertdev merged commit 734791f into main Feb 28, 2025
20 checks passed
@folkertdev folkertdev deleted the compare256-invert-bitcount branch February 28, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants