8 lines
160 B
Scala
8 lines
160 B
Scala
/// See LICENSE for license details.
|
|
package junctions
|
|
import Chisel._
|
|
|
|
object bigIntPow2 {
|
|
def apply(in: BigInt): Boolean = in > 0 && ((in & (in-1)) == 0)
|
|
}
|