fn floorPowerOfTwo(comptime T: type, value: T) T

Returns the nearest power of two less than or equal to value, or zero if value is less than or equal to zero.

Parameters

T: type,
value: T,