Package

metal

util

Permalink

package util

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Dummy[A] extends AnyRef

    Permalink

Value Members

  1. object Dummy

    Permalink
  2. def nextBitAfter(word: Long, currentBit: Int): Int

    Permalink

    Given a long word and a bit index, returns the next higher order bit set, or returns -1.

  3. def nextPowerOfTwo(n: Int): Int

    Permalink

    Given a number n, this method returns n if n is a power-of-two.

    Given a number n, this method returns n if n is a power-of-two.

    Otherwise, it returns the smallest power-of-two larger than n.

Inherited from AnyRef

Inherited from Any

Ungrouped