1
0
Files
rocket-chip/junctions/src/main/scala/util.scala
2015-10-02 14:19:51 -07:00

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)
}