Use Built-in functions for atomic memory access