Lines Matching refs:std
42 std::atomic<int> test_loc(0);
46 static std::mutex mtx;
58 result += test_loc.load(std::memory_order_relaxed); in BM_atomic_load_relaxed()
68 result += test_loc.load(std::memory_order_acquire); in BM_atomic_load_acquire()
78 test_loc.store(++i, std::memory_order_release); in BM_atomic_store_release()
87 test_loc.store(++i, std::memory_order_seq_cst); in BM_atomic_store_seq_cst()
96 result += test_loc.fetch_add(1, std::memory_order_relaxed); in BM_atomic_fetch_add_relaxed()
106 result += test_loc.fetch_add(1, std::memory_order_seq_cst); in BM_atomic_fetch_add_seq_cst()
119 result += test_loc.load(std::memory_order_relaxed); in BM_atomic_acquire_fence()
120 std::atomic_thread_fence(std::memory_order_acquire); in BM_atomic_acquire_fence()
130 result += test_loc.load(std::memory_order_relaxed); in BM_atomic_seq_cst_fence()
131 std::atomic_thread_fence(std::memory_order_seq_cst); in BM_atomic_seq_cst_fence()
144 std::lock_guard<std::mutex> _(mtx); in BM_atomic_fetch_add_cs()