Explain why to use saturation
This commit is contained in:
parent
dd1a5e41ad
commit
331230fabf
1 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ macro_rules! impl_int_arith {
|
|||
}
|
||||
|
||||
/// Lanewise saturating absolute value, implemented in Rust.
|
||||
/// As abs(), except the MIN value becomes MAX instead of itself.
|
||||
///
|
||||
/// # Examples
|
||||
/// # use core_simd::*;
|
||||
|
|
@ -99,6 +100,7 @@ macro_rules! impl_int_arith {
|
|||
}
|
||||
|
||||
/// Lanewise saturating negation, implemented in Rust.
|
||||
/// As neg(), except the MIN value becomes MAX instead of itself.
|
||||
///
|
||||
/// # Examples
|
||||
/// # use core_simd::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue