mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-27 22:13:12 -08:00
9 lines
163 B
Rust
9 lines
163 B
Rust
// TODO remove this once std::cmp::max becomes const
|
|
pub const fn max_usize(a: usize, b: usize) -> usize {
|
|
if a > b {
|
|
a
|
|
} else {
|
|
b
|
|
}
|
|
}
|