Skip to content

Commit 331230f

Browse files
Explain why to use saturation
1 parent dd1a5e4 commit 331230f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: crates/core_simd/src/math.rs

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ macro_rules! impl_int_arith {
8080
}
8181

8282
/// Lanewise saturating absolute value, implemented in Rust.
83+
/// As abs(), except the MIN value becomes MAX instead of itself.
8384
///
8485
/// # Examples
8586
/// # use core_simd::*;
@@ -99,6 +100,7 @@ macro_rules! impl_int_arith {
99100
}
100101

101102
/// Lanewise saturating negation, implemented in Rust.
103+
/// As neg(), except the MIN value becomes MAX instead of itself.
102104
///
103105
/// # Examples
104106
/// # use core_simd::*;

0 commit comments

Comments
 (0)