Atomic operations on int, uint, ptr with memory fences targeting various architectures.