mirror of
https://github.com/ziglang/zig.git
synced 2026-01-18 21:35:25 +00:00
stage2 sparcv9: Add initial toU32 function for serialization
This commit is contained in:
parent
a212d5931d
commit
92c262aa93
@ -444,4 +444,8 @@ pub const Instruction = union(enum) {
|
||||
opf_low: u6,
|
||||
rs2: u5,
|
||||
},
|
||||
|
||||
pub fn toU32(self: Instruction) u32 {
|
||||
return @bitCast(u32, self);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user