Crate safe_intrinsics

Source
Expand description

Provides a safe wrapper around some CPU instructions.

This is needed because Rust’s intrinsics are marked unsafe (despite these few being completely safe to invoke).

Functions§

cpuid
Invokes the cpuid instruction with input values eax and ecx.
rdtsc
Invokes the rdtsc instruction.
store_fence
Emit a store fence to flush the processor’s store buffer