Skip to content

Commit

Permalink
math/bits: add examples for right rotation
Browse files Browse the repository at this point in the history
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 <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
  • Loading branch information
tklauser authored and griesemer committed Nov 3, 2017
1 parent 483e298 commit 89bcbf4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/math/bits/example_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/math/bits/make_examples.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 89bcbf4

Please sign in to comment.