all: refactor coding style

This commit is contained in:
Loïc Grégoire
2026-08-05 17:43:46 -04:00
parent 2a09642f4d
commit bec872bc26
31 changed files with 887 additions and 330 deletions
+5 -1
View File
@@ -476,7 +476,11 @@ const PowerManagementInfoEdx = packed struct(u32) {
reserved1: u23,
};
fn assert_bit(comptime T: type, comptime field_name: []const u8, comptime expected_bit: u5) void {
fn assert_bit(
comptime T: type,
comptime field_name: []const u8,
comptime expected_bit: u5,
) void {
var v: T = @bitCast(@as(u32, 0));
@field(v, field_name) = true;
const raw: u32 = @bitCast(v);