Skip to content

Commit e6af7fd

Browse files
committed
Add support for 64-bit registers
1 parent c1acfbd commit e6af7fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ impl U32Ext for u32 {
267267
2...8 => Ident::new("u8"),
268268
9...16 => Ident::new("u16"),
269269
17...32 => Ident::new("u32"),
270+
33...64 => Ident::new("u64"),
270271
_ => Err(format!(
271272
"can't convert {} bits into a Rust integral type",
272273
*self
@@ -280,6 +281,7 @@ impl U32Ext for u32 {
280281
2...8 => 8,
281282
9...16 => 16,
282283
17...32 => 32,
284+
33...64 => 64,
283285
_ => Err(format!(
284286
"can't convert {} bits into a Rust integral type width",
285287
*self

0 commit comments

Comments
 (0)