Commit b697c120 authored by Shenghou Ma's avatar Shenghou Ma Committed by Russ Cox

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

LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/124350043
parent 4f557008
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment