Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
OnceNonZeroUsize::get_unchecked
for x86/x86_64.
Each call to `OnceNonZeroUsize::get()` results in an atomic load as the compiler will not cache and reuse the result of an atomic load. Provide an analogous `get_unchecked()` that uses a non-atomic load. The compiler will be able to cache and reuse the result to avoid redundant loads.
- Loading branch information