chore: remove premature inlines

This commit is contained in:
2022-01-10 01:24:14 -04:00
parent bbe2ecfa53
commit 0d4c850218
6 changed files with 22 additions and 22 deletions

View File

@@ -22,17 +22,17 @@ pub fn deinit(self: Self) void {
self.alloc.free(self.buf);
}
pub inline fn get32(self: *const Self, idx: usize) u32 {
pub fn get32(self: *const Self, idx: usize) u32 {
std.debug.panic("[BIOS] TODO: BIOS is not implemented", .{});
return (@as(u32, self.buf[idx + 3]) << 24) | (@as(u32, self.buf[idx + 2]) << 16) | (@as(u32, self.buf[idx + 1]) << 8) | (@as(u32, self.buf[idx]));
}
pub inline fn get16(self: *const Self, idx: usize) u16 {
pub fn get16(self: *const Self, idx: usize) u16 {
std.debug.panic("[BIOS] TODO: BIOS is not implemented", .{});
return (@as(u16, self.buf[idx + 1]) << 8) | @as(u16, self.buf[idx]);
}
pub inline fn get8(self: *const Self, idx: usize) u8 {
pub fn get8(self: *const Self, idx: usize) u8 {
std.debug.panic("[BIOS] TODO: BIOS is not implemented", .{});
return self.buf[idx];
}