polyval: use cpubits crate for soft backend selection#261
Merged
Conversation
We provide both 32-bit and 64-bit pure Rust implementations of POLYVAL in `soft32.rs` and `soft64.rs`. This commit addresses a TODO to use the `cpubits` crate to select between them. It contains equivalent 64-bit overrides to what we already had, but also provides a common place to add additional such overrides for other targets in the future.
e1b8aff to
bb23f39
Compare
Merged
tarcieri
added a commit
that referenced
this pull request
Feb 27, 2026
## Added - `hazmat` feature that exposes `FieldElement` type (#279) ## Changed - Edition changed to 2024 and MSRV bumped to 1.85 (#228) - Relax MSRV policy and allow MSRV bumps in patch releases - Replace `polyval_force_soft` with `polyval_backend="soft"` (#259) - Use `cpubits` crate for `soft` backend selection (#261) - Bump `cpufeatures` to v0.3 (#292) - Use [Reduction/Field algorithm] for parallel block processing on `aarch64`/`x86(_64)` (#294) - `polyval::mulx` moved to `FieldElement::mulx` (#296) - Update to `universal-hash` v0.6 (#310) ## Removed - `cfg(polyval_armv8)` - now enabled by default (#214)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We provide both 32-bit and 64-bit pure Rust implementations of POLYVAL in
soft32.rsandsoft64.rs.This commit addresses a TODO to use the
cpubitscrate to select between them.It contains equivalent 64-bit overrides to what we already had, but also provides a common place to add additional such overrides for other targets in the future.