pub fn isValidAlignGeneric(comptime T: type, alignment: T) bool
Returns whether alignment is a valid alignment, meaning it is a positive power of 2.
alignment
T: type
alignment: T
4949 4950 4951
pub fn isValidAlignGeneric(comptime T: type, alignment: T) bool { return alignment > 0 and std.math.isPowerOfTwo(alignment); }
Returns whether
alignmentis a valid alignment, meaning it is a positive power of 2.