mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
Copy the definition of x/sys/unix.isBigEndian to x/sys/cpu. Updates golang/go#57237 Change-Id: Iefbf4303720445611de93b0a3ea365f8208c033b Reviewed-on: https://go-review.googlesource.com/c/sys/+/463335 Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Rob Pike <r@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
12 lines
488 B
Go
12 lines
488 B
Go
// Copyright 2023 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.
|
|
|
|
//go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64
|
|
// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64
|
|
|
|
package cpu
|
|
|
|
// IsBigEndian records whether the GOARCH's byte order is big endian.
|
|
const IsBigEndian = true
|