Object/Class

emul

FixedPoint

Related Docs: class FixedPoint | package emul

Permalink

object FixedPoint

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FixedPoint
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit object FixedPointIsIntegral extends Integral[FixedPoint]

    Permalink
  5. def apply(x: String, fmt: FixFormat): FixedPoint

    Permalink
  6. def apply(x: BigDecimal, fmt: FixFormat): FixedPoint

    Permalink
  7. def apply(x: Double, fmt: FixFormat): FixedPoint

    Permalink
  8. def apply(x: Float, fmt: FixFormat): FixedPoint

    Permalink
  9. def apply(x: BigInt, fmt: FixFormat): FixedPoint

    Permalink
  10. def apply(x: Long, fmt: FixFormat): FixedPoint

    Permalink
  11. def apply(x: Int, fmt: FixFormat): FixedPoint

    Permalink
  12. def apply(x: Short, fmt: FixFormat): FixedPoint

    Permalink
  13. def apply(x: Byte, fmt: FixFormat): FixedPoint

    Permalink
  14. def apply(x: Boolean, fmt: FixFormat): FixedPoint

    Permalink
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def clamped(bits: BigInt, valid: Boolean, fmt: FixFormat): FixedPoint

    Permalink

    Create a new fixed point number, wrapping on overflow or underflow

    Create a new fixed point number, wrapping on overflow or underflow

    bits

    Value's bits (with both integer and fractional components)

    valid

    Defines whether this value is valid or not

    fmt

    The fixed point format used by this number

  17. def clamped(value: ⇒ BigDecimal, valid: Boolean, fmt: FixFormat): FixedPoint

    Permalink
  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def fromBits(bits: Array[Bool], fmt: FixFormat): FixedPoint

    Permalink

    Creates a fixed point value from the given array of bits, wrapping the result upon overflow/underflow

    Creates a fixed point value from the given array of bits, wrapping the result upon overflow/underflow

    bits

    Big-endian (LSB at index 0, MSB at last index) bits

    fmt

    The fixed point format to be used by this number

  23. def fromBits(bits: BigInt, valid: Boolean, fmt: FixFormat): FixedPoint

    Permalink
  24. def fromByte(x: Byte): FixedPoint

    Permalink
  25. def fromByteArray(array: Array[Byte], fmt: FixFormat): FixedPoint

    Permalink
  26. def fromChar(x: Char): FixedPoint

    Permalink
  27. def fromInt(x: Int): FixedPoint

    Permalink
  28. def fromLong(x: Long): FixedPoint

    Permalink
  29. def fromShort(x: Short): FixedPoint

    Permalink
  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  32. def invalid(fmt: FixFormat): FixedPoint

    Permalink
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. def random(max: FixedPoint, fmt: FixFormat): FixedPoint

    Permalink

    Generate a pseudo-random fixed point number, uniformly distributed between [0, max)

    Generate a pseudo-random fixed point number, uniformly distributed between [0, max)

    max

    The maximum value of the range, non-inclusive

    fmt

    The format for the max and the fixed point number being generated

  38. def random(fmt: FixFormat): FixedPoint

    Permalink

    Generate a pseudo-random fixed point number, uniformly distributed across the entire representation's range

    Generate a pseudo-random fixed point number, uniformly distributed across the entire representation's range

    fmt

    The format for the fixed point number being generated

  39. def saturating(bits: BigInt, valid: Boolean, fmt: FixFormat): FixedPoint

    Permalink

    Create a new fixed point number, saturating on overflow or underflow at the format's max or min values, respectively

    Create a new fixed point number, saturating on overflow or underflow at the format's max or min values, respectively

    bits

    Value's bits (with both integer and fractional components)

    valid

    Defines whether this value is valid or not

    fmt

    The fixed point format used by this number

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. def unbiased(bits: BigInt, valid: Boolean, fmt: FixFormat, saturate: Boolean = false): FixedPoint

    Permalink

    Create a new fixed point number, rounding to the closest representable number using unbiased rounding

    Create a new fixed point number, rounding to the closest representable number using unbiased rounding

    bits

    Value's bits, with 4 extra fractional bits (beyond normal format representation)

    valid

    Defines whether this value is valid or not

    fmt

    The fixed point format used by this number

    saturate

    When true, also use saturating arithmetic on underflow/overflow

  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped