[FIX] Fix the ATOMIC suport.

Fix the bugs in the ATOMIC support. This macros should produce stylecheck issues because it is a little bit tricky.