Packages

trait Num[T <: Data] extends AnyRef

Base operations for numbers

T

the type which is associated with the base operation

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Num
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def %(right: T): T

    Modulo

  2. abstract def *(right: T): T

    Multiplication

  3. abstract def +(right: T): T

    Addition

  4. abstract def +^(right: T): T

    Safe Addition with 1 bit expand

  5. abstract def +|(right: T): T

    Safe Addition with saturation

  6. abstract def -(right: T): T

    Substraction

  7. abstract def -^(right: T): T

    Safe Substraction with 1 bit expand

  8. abstract def -|(right: T): T

    Safe Substraction with saturation

  9. abstract def /(right: T): T

    Division

  10. abstract def <(right: T): Bool

    Is less than right

  11. abstract def <<(shift: Int): T

    Logical left shift (w(T) = w(this) + shift)

  12. abstract def <=(right: T): Bool

    Is equal or less than right

  13. abstract def >(right: T): Bool

    Is greater than right

  14. abstract def >=(right: T): Bool

    Is equal or greater than right

  15. abstract def >>(shift: Int): T

    Logical right shift (w(T) = w(this) - shift)

  16. abstract def ceil(n: Int, align: Boolean): T
  17. abstract def ceilToInf(n: Int, align: Boolean): T
  18. abstract def floor(n: Int): T

    lowest n bits Round Operation

  19. abstract def floorToZero(n: Int): T
  20. abstract def round(n: Int, align: Boolean): T
  21. abstract def roundDown(n: Int, align: Boolean): T
  22. abstract def roundToEven(n: Int, align: Boolean): T
  23. abstract def roundToInf(n: Int, align: Boolean): T
  24. abstract def roundToOdd(n: Int, align: Boolean): T
  25. abstract def roundToZero(n: Int, align: Boolean): T
  26. abstract def roundUp(n: Int, align: Boolean): T
  27. abstract def sat(m: Int): T

    highest m bits Saturation Operation

  28. abstract def tag(q: QFormat): T
  29. abstract def trim(m: Int): T

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Q: QFormat
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def ceil(width: BitCount, align: Boolean): T

    lowest n bits Round Operation by BitCount

  7. def ceilToInf(width: BitCount, align: Boolean): T
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def floor(width: BitCount): T
  12. def floorToZero(width: BitCount): T
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def max(right: T): T

    Return the maximum value between this and right

  17. def min(right: T): T

    Return the minimum value between this and right

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def round(width: BitCount, align: Boolean): T
  22. def roundDown(width: BitCount, align: Boolean): T
  23. def roundToEven(width: BitCount, align: Boolean): T
  24. def roundToInf(width: BitCount, align: Boolean): T
  25. def roundToOdd(width: BitCount, align: Boolean): T
  26. def roundToZero(width: BitCount, align: Boolean): T
  27. def roundUp(width: BitCount, align: Boolean): T
  28. def sat(width: BitCount): T
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def trim(width: BitCount): T
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped