pub unsafe fn _xtest() -> u8
🔬 This is a nightly-only experimental API. (stdsimd #48556)
This is supported on x86 and target feature rtm only.
Expand description

Queries whether the processor is executing in a transactional region identified by restricted transactional memory (RTM) or hardware lock elision (HLE).

Intel’s documentation.