clang 20.0.0git
Macros | Functions
mwaitxintrin.h File Reference

Go to the source code of this file.

Macros

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__, __target__("mwaitx")))
 

Functions

static __inline__ void __DEFAULT_FN_ATTRS _mm_monitorx (void *__p, unsigned __extensions, unsigned __hints)
 Establishes a linear address memory range to be monitored and puts the processor in the monitor event pending state.
 
static __inline__ void __DEFAULT_FN_ATTRS _mm_mwaitx (unsigned __extensions, unsigned __hints, unsigned __clock)
 Used with the MONITORX instruction to wait while the processor is in the monitor event pending state.
 

Macro Definition Documentation

◆ __DEFAULT_FN_ATTRS

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__, __target__("mwaitx")))

Definition at line 18 of file mwaitxintrin.h.

Function Documentation

◆ _mm_monitorx()

static __inline__ void __DEFAULT_FN_ATTRS _mm_monitorx ( void *  __p,
unsigned  __extensions,
unsigned  __hints 
)
static

Establishes a linear address memory range to be monitored and puts the processor in the monitor event pending state.

Data stored in the monitored address range causes the processor to exit the pending state.

This intrinsic corresponds to the MONITORX instruction.

Parameters
__pThe memory range to be monitored. The size of the range is determined by CPUID function 0000_0005h.
__extensionsOptional extensions for the monitoring state.
__hintsOptional hints for the monitoring state.

Definition at line 36 of file mwaitxintrin.h.

References __p.

◆ _mm_mwaitx()

static __inline__ void __DEFAULT_FN_ATTRS _mm_mwaitx ( unsigned  __extensions,
unsigned  __hints,
unsigned  __clock 
)
static

Used with the MONITORX instruction to wait while the processor is in the monitor event pending state.

Data stored in the monitored address range, or an interrupt, causes the processor to exit the pending state.

This intrinsic corresponds to the MWAITX instruction.

Parameters
__extensionsOptional extensions for the monitoring state, which can vary by processor.
__hintsOptional hints for the monitoring state, which can vary by processor.

Definition at line 55 of file mwaitxintrin.h.