mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-05 22:48:02 +00:00
Explain why to use saturation
This commit is contained in:
parent
dd1a5e41ad
commit
331230fabf
@ -80,6 +80,7 @@ macro_rules! impl_int_arith {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Lanewise saturating absolute value, implemented in Rust.
|
/// Lanewise saturating absolute value, implemented in Rust.
|
||||||
|
/// As abs(), except the MIN value becomes MAX instead of itself.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// # use core_simd::*;
|
/// # use core_simd::*;
|
||||||
@ -99,6 +100,7 @@ macro_rules! impl_int_arith {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Lanewise saturating negation, implemented in Rust.
|
/// Lanewise saturating negation, implemented in Rust.
|
||||||
|
/// As neg(), except the MIN value becomes MAX instead of itself.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// # use core_simd::*;
|
/// # use core_simd::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user