1
0
mirror of https://github.com/golang/go synced 2024-10-05 20:21:21 -06:00

[dev.power64] reflect: now we find one big endian machine

LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/124350043
This commit is contained in:
Shenghou Ma 2014-08-14 11:59:52 -04:00 committed by Russ Cox
parent 4f557008e8
commit b697c120f6

View File

@ -11,7 +11,7 @@ import (
"unsafe"
)
const bigEndian = false // can be smarter if we find a big-endian machine
const bigEndian = runtime.GOARCH == "power64" // can be smarter if we find more big-endian machines
const ptrSize = unsafe.Sizeof((*byte)(nil))
const cannotSet = "cannot set value obtained from unexported struct field"