inline fn sign(i: anytype) @TypeOf(i)
[src]
Returns -1, 0, or 1. Supports integer and float types and vectors of integer and float types. Unsigned integer types will always return 0 or 1. Branchless.
inline fn sign(i: anytype) @TypeOf(i)
Returns -1, 0, or 1. Supports integer and float types and vectors of integer and float types. Unsigned integer types will always return 0 or 1. Branchless.