asmkit/x86/features/
MCOMMIT.rs1use crate::x86::assembler::*;
2use crate::x86::operands::*;
3use super::super::opcodes::*;
4use crate::core::emitter::*;
5use crate::core::operand::*;
6
7const NOREG: Operand = Operand::new();
9
10pub trait McommitEmitter {
22 fn mcommit(&mut self);
23}
24
25impl<'a> McommitEmitter for Assembler<'a> {
26 fn mcommit(&mut self) {
27 self.emit(MCOMMIT, &NOREG, &NOREG, &NOREG, &NOREG);
28 }
29}
30
31
32impl<'a> Assembler<'a> {
33 #[inline]
45 pub fn mcommit(&mut self)
46 where Assembler<'a>: McommitEmitter {
47 <Self as McommitEmitter>::mcommit(self);
48 }
49}