Adding more atomic related functions to the atomic library.