Expand description
Utility functions for doing simple things in a const function.
Modules§
Functions§
- cond
- Returns
if_trueif cond is true, and otherwise returnsif_false - is_zero
- Returns 1 if
nis zero and 0 ifnis greater than zero - max
- Returns the maximum of
aandb - min
- Returns the minimum of
aandb - not_
zero - Returns 1 if
nis zero and 0 ifnis greater than zero - safe_
div - Returns
dividend - divisorif divisor isn’t zero, andcore::usize::MAXotherwise.