summaryrefslogtreecommitdiff
path: root/src/pkg/sync/atomic/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/sync/atomic/doc.go')
-rw-r--r--src/pkg/sync/atomic/doc.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/pkg/sync/atomic/doc.go b/src/pkg/sync/atomic/doc.go
index 987f8c93d..ecb4808ce 100644
--- a/src/pkg/sync/atomic/doc.go
+++ b/src/pkg/sync/atomic/doc.go
@@ -28,7 +28,7 @@ import (
// BUG(rsc): On ARM, the 64-bit functions use instructions unavailable before ARM 11.
//
-// On x86-32, the 64-bit functions use instructions unavailable before the Pentium.
+// On x86-32, the 64-bit functions use instructions unavailable before the Pentium MMX.
// CompareAndSwapInt32 executes the compare-and-swap operation for an int32 value.
func CompareAndSwapInt32(val *int32, old, new int32) (swapped bool)
@@ -66,9 +66,15 @@ func AddUintptr(val *uintptr, delta uintptr) (new uintptr)
// LoadInt32 atomically loads *addr.
func LoadInt32(addr *int32) (val int32)
+// LoadInt64 atomically loads *addr.
+func LoadInt64(addr *int64) (val int64)
+
// LoadUint32 atomically loads *addr.
func LoadUint32(addr *uint32) (val uint32)
+// LoadUint64 atomically loads *addr.
+func LoadUint64(addr *uint64) (val uint64)
+
// LoadUintptr atomically loads *addr.
func LoadUintptr(addr *uintptr) (val uintptr)
@@ -78,9 +84,15 @@ func LoadPointer(addr *unsafe.Pointer) (val unsafe.Pointer)
// StoreInt32 atomically stores val into *addr.
func StoreInt32(addr *int32, val int32)
+// StoreInt64 atomically stores val into *addr.
+func StoreInt64(addr *int64, val int64)
+
// StoreUint32 atomically stores val into *addr.
func StoreUint32(addr *uint32, val uint32)
+// StoreUint64 atomically stores val into *addr.
+func StoreUint64(addr *uint64, val uint64)
+
// StoreUintptr atomically stores val into *addr.
func StoreUintptr(addr *uintptr, val uintptr)