github.com/reiver/go@v0.0.0-20150109200633-1d0c7792f172/src/runtime/atomic_ppc64x.go (about) 1 // Copyright 2014 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. 4 5 // +build ppc64 ppc64le 6 7 package runtime 8 9 import "unsafe" 10 11 //go:noescape 12 func xadd(ptr *uint32, delta int32) uint32 13 14 //go:noescape 15 func xadd64(ptr *uint64, delta int64) uint64 16 17 //go:noescape 18 func xchg(ptr *uint32, new uint32) uint32 19 20 //go:noescape 21 func xchg64(ptr *uint64, new uint64) uint64 22 23 // NO go:noescape annotation; see atomic_pointer.go. 24 func xchgp1(ptr unsafe.Pointer, new unsafe.Pointer) unsafe.Pointer 25 26 //go:noescape 27 func xchguintptr(ptr *uintptr, new uintptr) uintptr 28 29 //go:noescape 30 func atomicload(ptr *uint32) uint32 31 32 //go:noescape 33 func atomicload64(ptr *uint64) uint64 34 35 //go:noescape 36 func atomicloadp(ptr unsafe.Pointer) unsafe.Pointer 37 38 //go:noescape 39 func atomicor8(ptr *uint8, val uint8) 40 41 //go:noescape 42 func cas64(ptr *uint64, old, new uint64) bool 43 44 //go:noescape 45 func atomicstore(ptr *uint32, val uint32) 46 47 //go:noescape 48 func atomicstore64(ptr *uint64, val uint64) 49 50 // NO go:noescape annotation; see atomic_pointer.go. 51 func atomicstorep1(ptr unsafe.Pointer, val unsafe.Pointer)