Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
- name: fmt
run: diff <(gofmt -d .) <(printf "")

- name: fix
run: diff <(go fix -diff ./...) <(printf "")

- name: Test 386
run: GOOS=linux GOARCH=386 go test -short ./...

Expand Down
4 changes: 2 additions & 2 deletions cpuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,8 @@ func Detect() {
os.Exit(1)
}
if disableFlag != nil {
s := strings.Split(*disableFlag, ",")
for _, feat := range s {
s := strings.SplitSeq(*disableFlag, ",")
for feat := range s {
feat := ParseFeature(strings.TrimSpace(feat))
if feat != UNKNOWN {
CPU.featureSet.unset(feat)
Expand Down
2 changes: 1 addition & 1 deletion riscv_isa.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "strings"
func parseISAString(c *CPUInfo, isa string) {
isa = strings.ToLower(isa)
extMap := make(map[string]bool)
for _, ext := range strings.Split(isa, "_") {
for ext := range strings.SplitSeq(isa, "_") {
ext = strings.TrimSpace(ext)
if strings.HasPrefix(ext, "rv64") {
extMap["i"] = true
Expand Down
Loading