Saturated arithmetics functions¶
satadd
function¶
template <typename T1, typename T2,
KFR_ENABLE_IF(is_numeric_args<T1, T2>),
typename Tout = std::common_type_t<T1, T2>>
Tout satadd(const T1 &x, const T2 &y)
Adds two arguments using saturation
satsub
function¶
template <typename T1, typename T2,
KFR_ENABLE_IF(is_numeric_args<T1, T2>),
typename Tout = std::common_type_t<T1, T2>>
Tout satsub(const T1 &x, const T2 &y)
Subtracts two arguments using saturation
Auto-generated from sources, Revision 5191a48df06ea47104ca67db19fa82058d09c20a, https://github.com/kfrlib/kfr/blob/5191a48df06ea47104ca67db19fa82058d09c20a/include/kfr/