1// Copyright 2015 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 !wasm 6 7package atomic 8 9import "unsafe" 10 11//go:noescape 12func Cas(ptr *uint32, old, new uint32) bool 13 14// NO go:noescape annotation; see atomic_pointer.go. 15func Casp1(ptr *unsafe.Pointer, old, new unsafe.Pointer) bool 16 17//go:noescape 18func Casuintptr(ptr *uintptr, old, new uintptr) bool 19 20//go:noescape 21func Storeuintptr(ptr *uintptr, new uintptr) 22 23//go:noescape 24func Loaduintptr(ptr *uintptr) uintptr 25 26//go:noescape 27func Loaduint(ptr *uint) uint 28 29// TODO(matloob): Should these functions have the go:noescape annotation? 30 31//go:noescape 32func Loadint64(ptr *int64) int64 33 34//go:noescape 35func Xaddint64(ptr *int64, delta int64) int64 36