const runtime.GOARCH
78 uses
runtime (current package)
alg.go#L313: if (GOARCH == "386" || GOARCH == "amd64") &&
alg.go#L320: if GOARCH == "arm64" && cpu.ARM64.HasAES {
debug.go#L17: if GOARCH == "wasm" && n > 1 {
extern.go#L275: const GOARCH string = goarch.GOARCH
lfstack_64bit.go#L42: if GOARCH == "ppc64" && GOOS == "aix" {
lfstack_64bit.go#L49: if GOARCH == "amd64" {
lfstack_64bit.go#L54: if GOARCH == "ppc64" && GOOS == "aix" {
malloc.go#L539: case GOARCH == "arm64" && GOOS == "ios":
malloc.go#L541: case GOARCH == "arm64":
mbitmap.go#L390: if (GOARCH == "amd64" || GOARCH == "arm64") && p == clobberdeadPtr && debug.invalidptr != 0 {
os_linux.go#L467: if GOARCH == "386" || GOARCH == "amd64" {
os_linux.go#L757: if GOARCH == "ppc64" || GOARCH == "ppc64le" {
os_linux.go#L867: if GOARCH == "ppc64" || GOARCH == "ppc64le" {
preempt.go#L389: if (GOARCH == "mips" || GOARCH == "mipsle" || GOARCH == "mips64" || GOARCH == "mips64le") && lr == pc+8 && funcspdelta(f, pc, nil) == 0 {
proc.go#L169: if GOARCH != "wasm" { // no threads on wasm yet, so no sysmon
proc.go#L634: switch GOARCH {
proc.go#L1317: return GOARCH == "386" || GOARCH == "amd64" || GOARCH == "arm" || GOARCH == "arm64"
proc.go#L1329: switch GOARCH {
proc.go#L2156: if GOARCH == "wasm" { // no threads on wasm yet
proc.go#L3488: if GOARCH == "wasm" { // no threads yet on wasm
proc.go#L4310: if GOARCH == "wasm" {
proc.go#L4361: if GOARCH == "wasm" {
proc.go#L4460: if GOARCH == "mips" || GOARCH == "mipsle" || GOARCH == "arm" {
proc.go#L4467: if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && pc&0xffff0000 == 0xffff0000 {
runtime2.go#L1134: const framepointer_enabled = GOARCH == "amd64" || GOARCH == "arm64"
signal_unix.go#L397: switch GOARCH {
signal_unix.go#L940: if GOOS == "darwin" && GOARCH == "amd64" {
stack.go#L1335: if (GOARCH == "amd64" || GOARCH == "arm64" || GOARCH == "ppc64" || GOARCH == "ppc64le") && unsafe.Sizeof(abi.RegArgs{}) > 0 && frame.argmap != nil {
symtab.go#L674: if res > md.etext && GOARCH != "wasm" { // on wasm, functions do not live in the same address space as the linear memory
traceback.go#L103: if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && frame.pc&0xffff0000 == 0xffff0000 {
crypto/tls
cipher_suites.go#L364: hasAESGCMHardwareSupport = runtime.GOARCH == "amd64" && hasGCMAsmAMD64 ||
cipher_suites.go#L365: runtime.GOARCH == "arm64" && hasGCMAsmARM64 ||
cipher_suites.go#L366: runtime.GOARCH == "s390x" && hasGCMAsmS390X
github.com/aws/aws-sdk-go-v2/aws/middleware
user_agent.go#L96: r.AddSDKAgentKeyValue(AdditionalMetadata, "GOARCH", runtime.GOARCH)
go/build
build.go#L343: if runtime.GOARCH == c.GOARCH && runtime.GOOS == c.GOOS {
gc.go#L16: return filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)
golang.org/x/sys/cpu
byteorder.go#L45: switch runtime.GOARCH {
cpu_x86.go#L56: {Name: "sse2", Feature: &X86.HasSSE2, Required: runtime.GOARCH == "amd64"},
golang.org/x/sys/unix
sockcmsg_unix_other.go#L33: if runtime.GOARCH == "arm" {
sockcmsg_unix_other.go#L37: if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" {
sysvshm_linux.go#L15: if runtime.GOARCH == "arm" ||
sysvshm_linux.go#L16: runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" {
internal/buildcfg
zbootstrap.go#L18: const defaultGOARCH = runtime.GOARCH
syscall
exec_linux.go#L218: case runtime.GOARCH == "s390x":
exec_unix.go#L295: } else if runtime.GOOS == "openbsd" && (runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
sockcmsg_unix_other.go#L32: if runtime.GOARCH == "arm" {
sockcmsg_unix_other.go#L36: if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" {
testing
benchmark.go#L266: fmt.Fprintf(b.w, "goarch: %s\n", runtime.GOARCH)
benchmark.go#L664: fmt.Printf("goarch: %s\n", runtime.GOARCH)
text/template
exec.go#L25: if runtime.GOARCH == "wasm" {
vendor/golang.org/x/crypto/chacha20
xor.go#L10: const unaligned = runtime.GOARCH == "386" ||
xor.go#L11: runtime.GOARCH == "amd64" ||
xor.go#L12: runtime.GOARCH == "arm64" ||
xor.go#L13: runtime.GOARCH == "ppc64le" ||
xor.go#L14: runtime.GOARCH == "s390x"
vendor/golang.org/x/sys/cpu
byteorder.go#L45: switch runtime.GOARCH {
cpu_x86.go#L56: {Name: "sse2", Feature: &X86.HasSSE2, Required: runtime.GOARCH == "amd64"},