1 unstable release
Uses old Rust 2015
0.0.0 | Feb 6, 2018 |
---|
#5 in #tsx
Used in spin-locks
45KB
762 lines
intel-tsx-hle
intel-tsx-hle is a rust crate providing atomic intrinsics for HLE (Hardware Lock Elision) on some Intel Skylake CPUs.
Licensing
The license for this project is MIT.
lib.rs
:
#intel-tsx-hle
This crate provides atomic intrinsics for HLE (Hardware Lock Elision) on some Intel Skylake CPUs in 32-bit (x86) and 64-bit (x86_64) modes.
The naming of the intrinsics follows that in Andi Kleen's tsx-tools.
Intrinsics are available for u8
, u16
, u32
, and, for x86_64, u64
.
These intrinsics can be thought of as providing additional memory orderings to Rust's Relaxed
, Release
, Acquire
and SeqCst
.
They closely model the intent of GCC's built in atomic instrincs.