log2Floor
chisel3.util.log2Floor
object log2Floor
Compute the log2 of a Scala integer, rounded down.
Can be useful in computing the next-smallest power of two.
Attributes
- Example
-
log2Floor(1) // returns 0 log2Floor(2) // returns 1 log2Floor(3) // returns 1 log2Floor(4) // returns 2 - Source
- Math.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
log2Floor.type
Members list
In this article