Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaturatingAdd ¶
func SaturatingAdd[T constraints.Integer](a, b T) T
SaturatingAdd computes a + b saturating at the numeric bounds instead of overflowing
func SaturatingSub ¶
func SaturatingSub[T constraints.Integer](a, b T) T
SaturatingSub computes a - b saturating at the numeric bounds instead of overflowing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.