Skip to main content

qubit_atomic/atomic/
atomic_i32.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2025 - 2026 Haixing Hu.
4 *
5 *    SPDX-License-Identifier: Apache-2.0
6 *
7 *    Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10
11//! # Atomic 32-bit Signed Integer
12//!
13//! Provides an easy-to-use atomic 32-bit signed integer type with sensible
14//! default memory orderings.
15//!
16
17use std::sync::atomic::Ordering;
18
19impl_atomic_number!(
20    AtomicI32,
21    std::sync::atomic::AtomicI32,
22    i32,
23    "32-bit signed integer"
24);