All Downloads are FREE. Search and download functionalities are using the official Maven repository.

singleton.ops.impl.util.scala Maven / Gradle / Ivy

The newest version!
package singleton.ops.impl

object nlz { //number of leading zeros
  def apply(value : Int) : Int = java.lang.Integer.numberOfLeadingZeros(value)
  def apply(value : Long) : Int = java.lang.Long.numberOfLeadingZeros(value)
}

object _require {
  @inline def apply(requirement: Boolean, message: => Any) = require(requirement, message)
}

object std {
  type Char = scala.Char
  type Int = scala.Int
  type Long = scala.Long
  type Float = scala.Float
  type Double = scala.Double
  type String = java.lang.String
  type Boolean = scala.Boolean
  type Symbol = scala.Symbol
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy