atomic

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LLGoPackage = "decl"
)

Variables

This section is empty.

Functions

func Add

func Add[T valtype](ptr *T, v T) T

llgo:link Add llgo.atomicAdd

func And

func And[T valtype](ptr *T, v T) T

llgo:link And llgo.atomicAnd

func CompareAndExchange

func CompareAndExchange[T valtype](ptr *T, old, new T) (T, bool)

llgo:link CompareAndExchange llgo.atomicCmpXchg

func Exchange

func Exchange[T valtype](ptr *T, v T) T

llgo:link Exchange llgo.atomicXchg

func Load

func Load[T valtype](ptr *T) T

llgo:link Load llgo.atomicLoad

func Max

func Max[T valtype](ptr *T, v T) T

llgo:link Max llgo.atomicMax

func Min

func Min[T valtype](ptr *T, v T) T

llgo:link Min llgo.atomicMin

func NotAnd

func NotAnd[T valtype](ptr *T, v T) T

llgo:link NotAnd llgo.atomicNand

func Or

func Or[T valtype](ptr *T, v T) T

llgo:link Or llgo.atomicOr

func Store

func Store[T valtype](ptr *T, v T)

llgo:link Store llgo.atomicStore

func Sub

func Sub[T valtype](ptr *T, v T) T

llgo:link Sub llgo.atomicSub

func UMax

func UMax[T valtype](ptr *T, v T) T

llgo:link UMax llgo.atomicUMax

func UMin

func UMin[T valtype](ptr *T, v T) T

llgo:link UMin llgo.atomicUMin

func Xor

func Xor[T valtype](ptr *T, v T) T

llgo:link Xor llgo.atomicXor

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL