Registry / crypto / portable-atomic

portable-atomic

JSON →
library1.13.1rscratesunverified

Portable atomic types including support for 128-bit atomics, atomic float, etc.

# Cargo.toml [dependencies] portable-atomic = "1.13.1"
INSTALL
IMPORT
SIG · PORTABLE-ATOMIC
P
portable-atomic
cryptorustv1.13.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AtomicU128
✓ use portable_atomic::AtomicU128;

Creates and loads a 128-bit atomic integer.

use portable_atomic::AtomicU128; use std::sync::atomic::Ordering; fn main() { let atomic = AtomicU128::new(42); let val = atomic.load(Ordering::SeqCst); println!("Value: {}", val); }
Debug
Known issues
gotchaOn some platforms, 128-bit atomics may fall back to a spinlock implementation.
fix
Enable the `unsafe-assume-single-core` feature if running on a single-core system for better performance.
affects: >=1.0.0
Upgrade
Version history
1.13.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
Amazon
1
OpenAI (training)
1
Resources
portable-atomic — cargo add portable-atomic · libregistry