Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions cmov/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.5.1 (2026-01-18)
### Added
- `riscv32` optimised mask generation ([#1396])
- `riscv64` optimised mask generation ([#1397])
- Support for `core::num::NonZero*` and `core::cmp::Ordering` ([#1404])

[#1396]: https://github.com/RustCrypto/utils/pull/1396
[#1397]: https://github.com/RustCrypto/utils/pull/1397
[#1404]: https://github.com/RustCrypto/utils/pull/1404

## 0.5.0 (2026-01-17)
### Added
- Optimized `CmovEq` for `[u8]` ([#1356])
Expand Down
2 changes: 1 addition & 1 deletion cmov/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cmov"
version = "0.5.0"
version = "0.5.1"
authors = ["RustCrypto Developers"]
edition = "2024"
rust-version = "1.85"
Expand Down
7 changes: 7 additions & 0 deletions cmov/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ inline `asm!`, which means the implementation is a black box that will not be
rewritten by e.g. LLVM's architecture-specific lowerings, such as the
[x86-cmov-conversion] pass.

This is a *low level crate* who's API is designed to make it easy to build
portable abstractions across various CPU architectures and is not intended for
general purpose use.

See the [`ctutils`] crate for a higher-level API build on top of `cmov`.

## Supported target architectures

This crate provides guaranteed constant-time operation using inline `asm!`
Expand Down Expand Up @@ -111,5 +117,6 @@ dual licensed as above, without any additional terms or conditions.
[CSEL]: https://developer.arm.com/documentation/dui0802/b/CSEL
[predication]: https://en.wikipedia.org/wiki/Predication_(computer_architecture)
[x86-cmov-conversion]: https://dsprenkels.com/cmov-conversion.html
[`ctutils`]: https://docs.rs/ctutils
[open an issue]: https://github.com/RustCrypto/utils/issues
[RUSTSEC-2026-0003]: https://rustsec.org/advisories/RUSTSEC-2026-0003.html