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 6aea976a464de59d522d0c629e64bf0c044e6777, https://github.com/kfrlib/kfr/blob/6aea976a464de59d522d0c629e64bf0c044e6777/include/kfr/