• Dave Cheney's avatar
    cmd/5g: avoid temporary during OMINUS · 5bdf40dc
    Dave Cheney authored
    Saves one MOVW and one register during the fast div/mod introduced in CL 6819123.
    
    linux/arm (armv5)
    
    benchmark               old ns/op    new ns/op    delta
    BenchmarkInt64Mod1             12           12   +7.50%
    BenchmarkUint16Mod2             7            7   +0.28%
    BenchmarkUint16Mod4             7            7   -0.28%
    BenchmarkUint64Mod1            15           11  -23.72%
    BenchmarkInt8Neg                8            7  -17.66%
    BenchmarkInt16Neg               8            7  -17.66%
    BenchmarkInt32Neg               5            5   -9.04%
    BenchmarkUint8Neg               7            6  -14.35%
    BenchmarkUint16Neg              8            7  -17.66%
    BenchmarkUint32Neg              5            5   -9.04%
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/6842045
    5bdf40dc
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...