go/src
Keith Randall 899f3a2892 cmd/compile: intrinsify math/bits.Add on amd64
name             old time/op  new time/op  delta
Add-8            1.11ns ± 0%  1.18ns ± 0%   +6.31%  (p=0.029 n=4+4)
Add32-8          1.02ns ± 0%  1.02ns ± 1%     ~     (p=0.333 n=4+5)
Add64-8          1.11ns ± 1%  1.17ns ± 0%   +5.79%  (p=0.008 n=5+5)
Add64multiple-8  4.35ns ± 1%  0.86ns ± 0%  -80.22%  (p=0.000 n=5+4)

The individual ops are a bit slower (but still very fast).
Using the ops in carry chains is very fast.

Update #28273

Change-Id: Id975f76df2b930abf0e412911d327b6c5b1befe5
Reviewed-on: https://go-review.googlesource.com/c/144257
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2018-10-25 19:47:00 +00:00
..
archive all: fix a bunch of misspellings 2018-10-08 03:12:03 +00:00
bufio bufio: avoid rescanning buffer multiple times in ReadSlice 2018-08-22 17:06:28 +00:00
builtin builtin: document when len and cap are constant 2018-09-18 21:52:11 +00:00
bytes bytes: vary the input alignment to Compare argument in compare_test.go 2018-10-11 04:45:18 +00:00
cmd cmd/compile: intrinsify math/bits.Add on amd64 2018-10-25 19:47:00 +00:00
compress all: fix a bunch of misspellings 2018-10-06 15:40:03 +00:00
container container/heap: clarify that Remove returns the removed element 2018-08-20 18:05:11 +00:00
context context: avoid duplicate removeChild 2018-10-03 15:26:10 +00:00
crypto crypto/tls: replace custom equal implementations with reflect.DeepEqual 2018-10-25 19:07:36 +00:00
database/sql database/sql: remove commented debug prints 2018-10-17 22:58:50 +00:00
debug debug/plan9obj: simplify s[:] to s where 2018-10-13 11:24:43 +00:00
encoding encoding/gob: delete out of memory test 2018-10-22 22:23:03 +00:00
errors
expvar expvar: add Map.Delete 2018-10-04 01:16:52 +00:00
flag flag: return a consistent parse error if the flag value is invalid 2018-10-19 03:48:38 +00:00
fmt fmt: print maps in key-sorted order 2018-10-18 21:12:24 +00:00
go go/types: untyped shifted constants must fit their expected int type 2018-10-24 20:49:59 +00:00
hash hash/crc64: use t.Fatalf in TestGolden 2018-10-25 06:32:12 +00:00
html all: use strings.ReplaceAll and bytes.ReplaceAll where applicable 2018-09-26 22:14:25 +00:00
image jpeg: simplify 'x = x op ...' to 'x op= ...' 2018-10-13 11:18:56 +00:00
index/suffixarray
internal internal/traceparser: skip test on iOS 2018-10-24 15:33:16 +00:00
io io: export StringWriter 2018-10-03 20:13:35 +00:00
log
math cmd/compile: intrinsify math/bits.Add on amd64 2018-10-25 19:47:00 +00:00
mime mime: add AIX operating system 2018-10-10 15:19:38 +00:00
net net: make cgo resolver work more accurately with network parameter 2018-10-25 03:14:03 +00:00
os os: ignore SIGTTIN during TestTTYClose 2018-10-18 00:08:57 +00:00
path path/filepath: add example for Match 2018-10-24 20:57:32 +00:00
plugin plugin: remove unused func 2018-08-22 16:29:03 +00:00
reflect reflect: add an example for Kind 2018-10-03 22:38:53 +00:00
regexp regexp: add partial Deprecation comment to Copy 2018-10-12 17:48:44 +00:00
runtime runtime: use unsigned load for iscgo variable in ppc64x runtime asm 2018-10-23 20:25:29 +00:00
sort
strconv strconv: add comment explaining bounded shift in formatBits 2018-10-15 21:45:52 +00:00
strings strings: Replace s[:] to s where s is a slice. 2018-10-13 11:17:13 +00:00
sync sync: fix typo in doc 2018-10-06 12:04:57 +00:00
syscall syscall: fix TestForeground for AIX 2018-10-25 16:03:56 +00:00
testdata Revert "compress: move benchmark text from src/testdata to src/compress/testdata" 2018-10-01 16:16:21 +00:00
testing testing: implement -benchtime=100x 2018-10-12 17:48:31 +00:00
text text/template: recover panics during function calls 2018-10-24 09:09:21 +00:00
time time: return correct zone info on js/wasm 2018-10-24 15:42:36 +00:00
unicode
unsafe unsafe: document that Alignof, Offsetof, and Sizeof return a constant 2018-10-11 02:32:20 +00:00
vendor/golang_org/x vendor: update golang_org/x/net/route from upstream 2018-10-05 21:53:34 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
make.bat src/make.bat: add missing go.exe extension 2018-08-25 22:42:46 +00:00
make.rc cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
naclmake.bash all: use consistent shebang line across all shell scripts 2018-08-22 16:41:11 +00:00
nacltest.bash all: use consistent shebang line across all shell scripts 2018-08-22 16:41:11 +00:00
race.bash
race.bat cmd/dist: fix compilation on windows 2018-08-25 22:39:17 +00:00
run.bash cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
run.bat cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
run.rc cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00