Documentation ¶
Index ¶
- func AddFloat32(addr *float32, delta float32) (new float32)
- func AddFloat64(addr *float64, delta float64) (new float64)
- func CompareAndSwapFloat32(addr *float32, old, new float32) (swapped bool)
- func CompareAndSwapFloat64(addr *float64, old, new float64) (swapped bool)
- func LoadFloat32(addr *float32) (val float32)
- func LoadFloat64(addr *float64) (val float64)
- func StoreFloat32(addr *float32, val float32)
- func StoreFloat64(addr *float64, val float64)
- func SwapFloat32(addr *float32, new float32) (old float32)
- func SwapFloat64(addr *float64, new float64) (old float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFloat32 ¶
AddFloat32 atomically adds delta to *addr and returns the new value.
func AddFloat64 ¶
AddFloat64 atomically adds delta to *addr and returns the new value.
func CompareAndSwapFloat32 ¶
CompareAndSwapFloat32 executes the compare-and-swap operation for an float32 value.
func CompareAndSwapFloat64 ¶
CompareAndSwapFloat64 executes the compare-and-swap operation for an float64 value.
func LoadFloat32 ¶
LoadFloat32 atomically loads *addr.
func LoadFloat64 ¶
LoadFloat64 atomically loads *addr.
func StoreFloat32 ¶
StoreFloat32 atomically stores val into *addr.
func StoreFloat64 ¶
StoreFloat64 atomically stores val into *addr.
func SwapFloat32 ¶
SwapFloat32 atomically stores new into *addr and returns the previous *addr value.
func SwapFloat64 ¶
SwapFloat64 atomically stores new into *addr and returns the previous *addr value.
Types ¶
This section is empty.