]> Cypherpunks repositories - gostls13.git/commit
math/bits: add examples for right rotation
authorTobias Klauser <tklauser@distanz.ch>
Thu, 2 Nov 2017 10:19:23 +0000 (11:19 +0100)
committerRobert Griesemer <gri@golang.org>
Fri, 3 Nov 2017 20:12:07 +0000 (20:12 +0000)
commit89bcbf40b86ebad81d5cf34f6457f11a6f23b808
tree3cc56b5df65a744c66009891634bdcb99f895604
parent483e298daad38f39515ba20c0fcedc20b5475ae8
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>
src/math/bits/example_test.go
src/math/bits/make_examples.go