mirror of
https://github.com/boostorg/atomic.git
synced 2026-02-02 08:22:08 +00:00
Increased lock pool size to 64 entries and improve pool efficiency: - Shift off lower pointer bits that are zero due to object alignment. - Mix higher pointer bits to account for alignment typically imposed by malloc/new implementations. - Use bit masking to select a lock from pool, given that the pool size is a power of 2 now. Also, extracted (u)intptr_t definition to a common header to avoid code duplication.