...
Run Format

Source file src/runtime/internal/atomic/stubs.go

Documentation: runtime/internal/atomic

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

View as plain text