Skip to main content

qubit_atomic/atomic/
atomic_u8.rs

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