From 331230fabff28d2c883967e2ac4ef02eaea4db5c Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Fri, 2 Apr 2021 09:11:24 -0700 Subject: [PATCH] Explain why to use saturation --- crates/core_simd/src/math.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/core_simd/src/math.rs b/crates/core_simd/src/math.rs index 0d9d62353568..eb46feb5c4b4 100644 --- a/crates/core_simd/src/math.rs +++ b/crates/core_simd/src/math.rs @@ -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::*;