LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / libgo / go / runtime / unaligned1.go
blob2f5b63a4c7c0f1bbf5e12ec6e8bc21f2f42388d3
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 riscv64
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)