runtime: scan register backing store on ia64
[official-gcc.git] / libgo / go / runtime / unaligned1.go
blobc94f19eeb940cc27d8e8cf8a7614bedc2990f304
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build 386 amd64 amd64p32 arm64 ppc64 ppc64le s390x ppc s390 arm64be
7 package runtime
9 import "unsafe"
11 func readUnaligned32(p unsafe.Pointer) uint32 {
12 return *(*uint32)(p)
15 func readUnaligned64(p unsafe.Pointer) uint64 {
16 return *(*uint64)(p)