Merge: Int::is_pow2
authorJean Privat <jean@pryen.org>
Sun, 29 May 2016 20:35:56 +0000 (16:35 -0400)
committerJean Privat <jean@pryen.org>
Sun, 29 May 2016 20:35:56 +0000 (16:35 -0400)
commita7d856606c0dabcbc3f52f85e41bb1762ca72cbc
tree81204bfb82004d3b4295980d6625c5e2c6e3ae76
parent87d22cf8bf5c528b47e73b5789a03ce82cfdc086
parentf6cc203a2b1ae16d8bb5c994da6a8414806cd2a5
Merge: Int::is_pow2

Simple addition to `core`, the `is_pow2` method on Int tells whether an integer is a power of two.

Pull-Request: #2136
Reviewed-by: Jean Privat <jean@pryen.org>