prism3_atomic/atomic/
atomic_u16.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2025.
4 *    3-Prism Co. Ltd.
5 *
6 *    All rights reserved.
7 *
8 ******************************************************************************/
9
10//! # Atomic 16-bit Unsigned Integer
11//!
12//! Provides an easy-to-use atomic 16-bit unsigned integer type with sensible
13//! default memory orderings.
14//!
15//! # Author
16//!
17//! Haixing Hu
18
19use std::fmt;
20use std::sync::atomic::Ordering;
21
22impl_atomic_number!(
23    AtomicU16,
24    std::sync::atomic::AtomicU16,
25    u16,
26    "16-bit unsigned integer"
27);