diff options
Diffstat (limited to 'libgo/go/runtime/internal/atomic/unaligned.go')
-rw-r--r-- | libgo/go/runtime/internal/atomic/unaligned.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libgo/go/runtime/internal/atomic/unaligned.go b/libgo/go/runtime/internal/atomic/unaligned.go new file mode 100644 index 0000000..fbfe125 --- /dev/null +++ b/libgo/go/runtime/internal/atomic/unaligned.go @@ -0,0 +1,14 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package atomic + +import _ "unsafe" // for go:linkname + +// Let the C code call this function. +//go:linkname panicUnaligned + +func panicUnaligned() { + panic("unaligned 64-bit atomic operation") +} |