Added macros for atomic operations