Implementation for atomic memory update operations
