atomic ops impl of gcc