modular-bitfield
modular-bitfield copied to clipboard
Atomics support
It would be cool if bitfield loads and stores could also be atomic. For example, it is very usable in GC systems where object color might be encoded in 2 or 3 bits, and during parallel/concurrent collection these bits should be updated atomically.