Remove packed_struct dependency; closes #1271 and #1284 (#1282)

This commit is contained in:
Andrew Brown
2019-12-12 17:01:31 -08:00
committed by GitHub
parent af64187ec7
commit d4df756acf
5 changed files with 253 additions and 92 deletions

View File

@@ -67,7 +67,7 @@ fn rex3(rm: RegUnit, reg: RegUnit, index: RegUnit) -> u8 {
// extracted from `bits`.
fn rex_prefix<CS: CodeSink + ?Sized>(bits: u16, rex: u8, sink: &mut CS) {
debug_assert_eq!(rex & 0xf8, BASE_REX);
let w = EncodingBits::from(bits).rex_w;
let w = EncodingBits::from(bits).rex_w();
sink.put1(rex | (u8::from(w) << 3));
}