go/src/math/bits
Tobias Klauser 89bcbf40b8 math/bits: add examples for right rotation
Right rotation is achieved using negative k in RotateLeft*(x, k). Add
examples demonstrating that functionality.

Change-Id: I15dab159accd2937cb18d3fa8ca32da8501567d3
Reviewed-on: https://go-review.googlesource.com/75371
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2017-11-03 20:12:07 +00:00
..
bits.go math/bits: support negative rotation count and remove RotateRight 2017-04-11 23:57:24 +00:00
bits_tables.go math/bits: faster LeadingZeros and Len functions 2017-02-28 20:55:13 +00:00
bits_test.go cmd/compile: ppc64x intrinsics for math/bits 2017-05-10 12:10:56 +00:00
example_test.go math/bits: add examples for right rotation 2017-11-03 20:12:07 +00:00
make_examples.go math/bits: add examples for right rotation 2017-11-03 20:12:07 +00:00
make_tables.go math/bits: faster LeadingZeros and Len functions 2017-02-28 20:55:13 +00:00