Add low-level implementation of atomic ops (high-level versions will be generated with metaprogramming)