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