Low-level atomic operations for Swift