mirror of
https://github.com/boostorg/atomic.git
synced 2026-02-01 20:12:09 +00:00
On 32-bit x86, 64-bit integers have 4-byte alignment, which resulted in a non-integral type being selected for storage type in case of lock-based atomic_ref. This broke arithmetic and bitwise operations on atomic_ref. We now select an integral type based on its native alignment, not the storage alignment we require for atomic operations. This is fine in case of lock-based backend. Also, extended buffer_storage with support for specifying alignment and removed aligned_buffer_storage and storage128_t.
3.1 KiB
3.1 KiB