github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/runtime/atomic/atomic_andor_generic.go (about)

     1  // Copyright 2023 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  //go:build arm || mips || mipsle || mips64 || mips64le || wasm
     6  
     7  package atomic
     8  
     9  //go:nosplit
    10  func And32(ptr *uint32, val uint32) uint32
    11  
    12  //go:nosplit
    13  func Or32(ptr *uint32, val uint32) uint32
    14  
    15  //go:nosplit
    16  func And64(ptr *uint64, val uint64) uint64
    17  
    18  //go:nosplit
    19  func Or64(ptr *uint64, val uint64) uint64
    20  
    21  //go:nosplit
    22  func Anduintptr(ptr *uintptr, val uintptr) uintptr
    23  
    24  //go:nosplit
    25  func Oruintptr(ptr *uintptr, val uintptr) uintptr