diff options
Diffstat (limited to 'libgo/go/sync/atomic/doc.go')
-rw-r--r-- | libgo/go/sync/atomic/doc.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/sync/atomic/doc.go b/libgo/go/sync/atomic/doc.go index 1335def59f6..ec5a0d33af1 100644 --- a/libgo/go/sync/atomic/doc.go +++ b/libgo/go/sync/atomic/doc.go @@ -55,3 +55,8 @@ func AddUint64(val *uint64, delta uint64) (new uint64) // AddUintptr atomically adds delta to *val and returns the new value. func AddUintptr(val *uintptr, delta uintptr) (new uintptr) + +// Helper for ARM. Linker will discard on other systems +func panic64() { + panic("sync/atomic: broken 64-bit atomic operations (buggy QEMU)") +} |