1
0
mirror of https://github.com/golang/go synced 2024-11-06 11:26:12 -07:00
go/src
Michael Munday 42a82ce1a7 math/bits: optimize Reverse32 and Reverse64
Use ReverseBytes32 and ReverseBytes64 to speed up these functions.
The byte reversal functions are intrinsics on most platforms and
generally compile to a single instruction.

name       old time/op  new time/op  delta
Reverse32  2.41ns ± 1%  1.94ns ± 3%  -19.60%  (p=0.000 n=20+19)
Reverse64  3.85ns ± 1%  2.56ns ± 1%  -33.32%  (p=0.000 n=17+19)

Change-Id: I160bf59a0c7bd5db94114803ec5a59fae448f096
Reviewed-on: https://go-review.googlesource.com/c/159358
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2019-02-26 17:52:08 +00:00
..
archive src, misc: apply gofmt 2019-02-19 20:38:28 +00:00
bufio bufio: document relationship between UnreadByte/UnreadRune and Peek 2019-01-08 23:47:27 +00:00
builtin
bytes
cmd cmd/compile: don't crash on -d=ssa/ 2019-02-26 17:50:01 +00:00
compress src, misc: apply gofmt 2019-02-19 20:38:28 +00:00
container
context
crypto crypto/rc4: remove false guarantees from Reset docs and deprecate it 2019-02-22 17:05:17 +00:00
database/sql database/sql/driver: fix typo 2019-02-15 17:23:55 +00:00
debug debug/gosym: remove outdated comment 2019-01-09 14:44:28 +00:00
encoding encoding/json: add comment for mashalererror struct 2019-01-15 23:30:58 +00:00
errors
expvar
flag flag: improve docs for PrintDefaults; clarify how to change output destination 2019-01-21 05:30:12 +00:00
fmt fmt: scan new number syntax 2019-02-26 05:18:24 +00:00
go go/build: add go1.13 release tag 2019-02-20 21:44:53 +00:00
hash
html text/template: accept new number syntax 2019-02-26 05:18:38 +00:00
image
index/suffixarray
internal
io
log
math math/bits: optimize Reverse32 and Reverse64 2019-02-26 17:52:08 +00:00
mime
net net/rpc: fix args order in strings.Contains call 2019-02-26 17:51:35 +00:00
os os: don't return ENOENT if directory removed before Fstatat 2019-02-12 21:17:38 +00:00
path path/filepath: revert "fix Windows-specific Clean bug" 2019-02-20 18:32:07 +00:00
plugin
reflect reflect: eliminate write barrier for copying result in callReflect 2019-02-01 19:23:02 +00:00
regexp
runtime runtime: make tests that invoke 'go build' module-agnostic 2019-02-19 19:56:43 +00:00
sort sort: change let to let's 2019-01-27 01:34:56 +00:00
strconv strconv: add 0b, 0o integer prefixes in ParseInt, ParseUint 2019-02-12 14:48:26 +00:00
strings
sync sync/atomic: add 32-bit MIPS to the 64-bit alignment requirement 2019-02-09 23:07:07 +00:00
syscall syscall: skip TestSyscallNoError when temp dir is mounted nosuid 2019-02-15 19:24:37 +00:00
testdata
testing testing: report the failing test in a late log panic 2019-01-17 01:28:22 +00:00
text text/template: improve nil errors in evalField 2019-02-26 17:50:11 +00:00
time time: parse 1us in Nanoseconds example 2019-02-26 17:22:58 +00:00
unicode
unsafe
all.bash
all.bat
all.rc
androidtest.bash Revert "androidtest.bash: wait for device to be ready before using it" 2019-02-24 21:54:04 +00:00
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc