title: gcc atomic extension for storing and incrementing
body: <p>Does there exist any gcc extensions to atomically do an operation like</p>
  
  <p>a = b++ in C. Using a mutex seems to be an overkill for such a trivial operation.</p>