]> Cypherpunks repositories - gostls13.git/commit
runtime: ~3.7x speed up of div/mod on ARM
authorShenghou Ma <minux.ma@gmail.com>
Sat, 20 Oct 2012 08:40:19 +0000 (16:40 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Sat, 20 Oct 2012 08:40:19 +0000 (16:40 +0800)
commit3e3fa7b5f17fd57e9890cd823d39add271c77d9c
tree5842202256abe5fa855200d7caa58a22d1c62ab3
parent0ba5ec53b047376e77418a248233b0645a79a838
runtime: ~3.7x speed up of div/mod on ARM
benchmark                      old ns/op    new ns/op    delta
BenchmarkUint32Div7                  281           75  -73.06%
BenchmarkUint32Div37                 281           75  -73.02%
BenchmarkUint32Div123                281           75  -73.02%
BenchmarkUint32Div763                280           75  -72.89%
BenchmarkUint32Div1247               280           75  -72.93%
BenchmarkUint32Div9305               281           75  -73.02%
BenchmarkUint32Div13307              281           75  -73.06%
BenchmarkUint32Div52513              281           75  -72.99%
BenchmarkUint32Div60978747           281           63  -77.33%
BenchmarkUint32Div106956295          280           63  -77.21%
BenchmarkUint32Mod7                  280           77  -72.21%
BenchmarkUint32Mod37                 280           77  -72.18%
BenchmarkUint32Mod123                280           77  -72.25%
BenchmarkUint32Mod763                280           77  -72.18%
BenchmarkUint32Mod1247               280           77  -72.21%
BenchmarkUint32Mod9305               280           77  -72.21%
BenchmarkUint32Mod13307              280           77  -72.25%
BenchmarkUint32Mod52513              280           77  -72.18%
BenchmarkUint32Mod60978747           280           63  -77.25%
BenchmarkUint32Mod106956295          280           63  -77.21%

R=dave, rsc
CC=dave, golang-dev, rsc
https://golang.org/cl/6717043
src/pkg/runtime/vlop_arm.s