log2Down

chisel3.util.log2Down
object log2Down

Compute the log2 of a Scala integer, rounded down, with min value of 1.

Attributes

Example
log2Down(1)  // returns 1
log2Down(2)  // returns 1
log2Down(3)  // returns 1
log2Down(4)  // returns 2
Source
Math.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
log2Down.type

Members list

Value members

Concrete methods

def apply(in: BigInt): Int

Attributes

Source
Math.scala
def apply(in: Int): Int

Attributes

Source
Math.scala