-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fd10f5
commit afd6cca
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//go:build armbe || arm64be || mips || mips64 || mips64p32 || ppc64 || s390 || s390x || sparc || sparc64 | ||
// +build armbe arm64be mips mips64 mips64p32 ppc64 s390 s390x sparc sparc64 | ||
|
||
package internal | ||
|
||
import "encoding/binary" | ||
|
||
// NativeEndian is set to either binary.BigEndian or binary.LittleEndian, | ||
// depending on the host's endianness. | ||
var NativeEndian binary.ByteOrder = binary.BigEndian | ||
|
||
// ClangEndian is set to either "el" or "eb" depending on the host's endianness. | ||
const ClangEndian = "eb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//go:build 386 || amd64 || amd64p32 || arm || arm64 || mipsle || mips64le || mips64p32le || ppc64le || riscv64 | ||
// +build 386 amd64 amd64p32 arm arm64 mipsle mips64le mips64p32le ppc64le riscv64 | ||
|
||
package internal | ||
|
||
import "encoding/binary" | ||
|
||
// NativeEndian is set to either binary.BigEndian or binary.LittleEndian, | ||
// depending on the host's endianness. | ||
var NativeEndian binary.ByteOrder = binary.LittleEndian | ||
|
||
// ClangEndian is set to either "el" or "eb" depending on the host's endianness. | ||
const ClangEndian = "el" |