1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 func loadUint64(addr *uint64) (val uint64) {
10 if CompareAndSwapUint64(addr, val, val) {
17 func storeUint64(addr *uint64, val uint64) {
20 if CompareAndSwapUint64(addr, old, val) {
27 func addUint64(val *uint64, delta uint64) (new uint64) {
31 if CompareAndSwapUint64(val, old, new) {