internal/cpu: new package to detect cpu features
Implements detection of x86 cpu features that are used in the go standard library. Changes all standard library packages to use the new cpu package instead of using runtime internal variables to check x86 cpu features. Updates: #15403 Change-Id: I2999a10cb4d9ec4863ffbed72f4e021a1dbc4bb9 Reviewed-on: https://go-review.googlesource.com/41476Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Showing
src/internal/cpu/cpu.go
0 → 100644
src/internal/cpu/cpu_arm.go
0 → 100644
src/internal/cpu/cpu_mips.go
0 → 100644
src/internal/cpu/cpu_test.go
0 → 100644
src/internal/cpu/cpu_x86.go
0 → 100644
src/internal/cpu/cpu_x86.s
0 → 100644
Please register or sign in to comment