On Wednesday, 2 June 2021 at 15:09:54 UTC, rm wrote: > inc/dec are implemented in terms of fetch_add. IIRC some architectures provide more efficient inc/dec atomics without fetch? I haven't looked at that in years, so I have no idea what the contemporary situation is.