fn multipleOfPowerOf2(value: anytype, p: u32) bool
fn multipleOfPowerOf2(value: anytype, p: u32) bool { const T = @TypeOf(value); std.debug.assert(@typeInfo(T) == .int); return (value & ((@as(T, 1) << @as(std.math.Log2Int(T), @intCast(p))) - 1)) == 0; }