crypto/ripemd160
Ilya Tocar c7dcf104e3 ripemd160: use bits.Rotate for rotates
Replace x << k | x >> (32 - k) with bits.RotateLeft32 and add
benchmark to check performance. This makes code cleaner and improves performance:

MillionA-6  34.8ms ± 1%  26.7ms ± 1%  -23.41%  (p=0.000 n=10+10)

Change-Id: I1b0c45f5ea12c7b53ab1ec5a26efc1903555fa66
Reviewed-on: https://go-review.googlesource.com/97915
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-08 18:56:24 +00:00
..
ripemd160.go crypto: add import comments. 2014-12-09 23:26:36 +00:00
ripemd160_test.go ripemd160: use bits.Rotate for rotates 2018-03-08 18:56:24 +00:00
ripemd160block.go ripemd160: use bits.Rotate for rotates 2018-03-08 18:56:24 +00:00