chore: run zig fmt

This commit is contained in:
2021-12-29 15:13:50 -06:00
parent ff7bf4eaa7
commit 7cc3f40a85
4 changed files with 13 additions and 17 deletions

View File

@@ -1,6 +1,5 @@
const std = @import("std");
pub fn u32_sign_extend(value: u32, bitSize: anytype) u32 {
const amount: u5 = 32 - bitSize;
return @bitCast(u32, @bitCast(i32, value << amount) >> amount);