aboutsummaryrefslogtreecommitdiff
path: root/internal/cpu/cpu.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-23 05:10:40 +0000
committerGravatar Runxi Yu2026-03-23 05:10:40 +0000
commita75e16740e1a185d523153d86badf9b2c2bcc12e (patch)
tree2e6324ed0823c25f9b9a2135b4872c6a3624a921 /internal/cpu/cpu.go
parentrefstore: Improve interfaces, errors, and make batch work (diff)
signatureNo signature
Vendor a minimal internal/cpu for AMD64 only v0.1.93
Diffstat (limited to 'internal/cpu/cpu.go')
-rw-r--r--internal/cpu/cpu.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/cpu/cpu.go b/internal/cpu/cpu.go
new file mode 100644
index 00000000..dd7680cb
--- /dev/null
+++ b/internal/cpu/cpu.go
@@ -0,0 +1,6 @@
+package cpu
+
+// X86 contains x86 CPU feature flags detected at runtime.
+var X86 struct {
+ HasAVX2 bool
+}