X7ROOT File Manager
Current Path:
/opt/golang/1.22.0/src/internal/cpu
opt
/
golang
/
1.22.0
/
src
/
internal
/
cpu
/
📁
..
📄
cpu.go
(6.85 KB)
📄
cpu.s
(276 B)
📄
cpu_arm.go
(1.26 KB)
📄
cpu_arm64.go
(1.64 KB)
📄
cpu_arm64.s
(439 B)
📄
cpu_arm64_android.go
(231 B)
📄
cpu_arm64_darwin.go
(1014 B)
📄
cpu_arm64_freebsd.go
(322 B)
📄
cpu_arm64_hwcap.go
(2.15 KB)
📄
cpu_arm64_linux.go
(250 B)
📄
cpu_arm64_openbsd.go
(574 B)
📄
cpu_arm64_other.go
(466 B)
📄
cpu_loong64.go
(398 B)
📄
cpu_mips.go
(220 B)
📄
cpu_mips64x.go
(671 B)
📄
cpu_mipsle.go
(220 B)
📄
cpu_no_name.go
(620 B)
📄
cpu_ppc64x.go
(651 B)
📄
cpu_ppc64x_aix.go
(603 B)
📄
cpu_ppc64x_linux.go
(885 B)
📄
cpu_ppc64x_other.go
(423 B)
📄
cpu_riscv64.go
(220 B)
📄
cpu_s390x.go
(5.88 KB)
📄
cpu_s390x.s
(2.2 KB)
📄
cpu_s390x_test.go
(1.43 KB)
📄
cpu_test.go
(1.4 KB)
📄
cpu_wasm.go
(220 B)
📄
cpu_x86.go
(5.81 KB)
📄
cpu_x86.s
(831 B)
📄
cpu_x86_test.go
(1.37 KB)
📄
export_test.go
(200 B)
📄
export_x86_test.go
(241 B)
Editing: cpu_x86_test.go
// Copyright 2018 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 386 || amd64 package cpu_test import ( . "internal/cpu" "internal/godebug" "testing" ) func TestX86ifAVX2hasAVX(t *testing.T) { if X86.HasAVX2 && !X86.HasAVX { t.Fatalf("HasAVX expected true when HasAVX2 is true, got false") } } func TestX86ifAVX512FhasAVX2(t *testing.T) { if X86.HasAVX512F && !X86.HasAVX2 { t.Fatalf("HasAVX2 expected true when HasAVX512F is true, got false") } } func TestX86ifAVX512BWhasAVX512F(t *testing.T) { if X86.HasAVX512BW && !X86.HasAVX512F { t.Fatalf("HasAVX512F expected true when HasAVX512BW is true, got false") } } func TestX86ifAVX512VLhasAVX512F(t *testing.T) { if X86.HasAVX512VL && !X86.HasAVX512F { t.Fatalf("HasAVX512F expected true when HasAVX512VL is true, got false") } } func TestDisableSSE3(t *testing.T) { if GetGOAMD64level() > 1 { t.Skip("skipping test: can't run on GOAMD64>v1 machines") } runDebugOptionsTest(t, "TestSSE3DebugOption", "cpu.sse3=off") } func TestSSE3DebugOption(t *testing.T) { MustHaveDebugOptionsSupport(t) if godebug.New("#cpu.sse3").Value() != "off" { t.Skipf("skipping test: GODEBUG=cpu.sse3=off not set") } want := false if got := X86.HasSSE3; got != want { t.Errorf("X86.HasSSE3 expected %v, got %v", want, got) } }
Upload File
Create Folder