ATUNs: Modular and scalable support for atomic operations in a shared memory multiprocessor