diff --git a/go.mod b/go.mod index 8ddfc3dc9..75a174760 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module kitty -go 1.21 +go 1.22 require ( github.com/ALTree/bigfloat v0.2.0 diff --git a/tools/simdstring/generate.go b/tools/simdstring/generate.go index 8dea7f815..2c9feda05 100644 --- a/tools/simdstring/generate.go +++ b/tools/simdstring/generate.go @@ -1053,24 +1053,11 @@ func (s *Function) Return() { } func (s *Function) end_function() { - v := strings.Split(runtime.Version()[2:], ".")[:2] - atoi := func(x string) (v int) { - if v, err := strconv.Atoi(x); err != nil { - panic(err) - } else { - return v - } - } - ver := struct { - major, minor int - }{atoi(v[0]), atoi(v[1])} - if s.ISA.Goarch == ARM64 || (ver.major > 1 || ver.minor > 21) { - amt := 16 - if s.Used256BitReg { - amt = 32 - } - s.instr(fmt.Sprintf("PCALIGN $%d\n", amt)) + amt := 16 + if s.Used256BitReg { + amt = 32 } + s.instr(fmt.Sprintf("PCALIGN $%d\n", amt)) s.Return() }