Documentation ¶
Overview ¶
Package umath provides some useful unsigned math functions to prevent underflows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubtractOrZero ¶
SubtractOrZero returns a - b if a >= b, otherwise 0. This is a convenience function for inline usage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.