FixPt¶
FixPt[S,I,F] represents an arbitrary precision fixed point representation. FixPt values may be signed or unsigned. Negative values, if applicable, are represented in twos complement.
The type parameters for FixPt are:
S | Signed or unsigned representation | (Signed/Unsign) |
I | Number of integer bits | (B0 - B64) |
F | Number of fractional bits | (B0 - B64) |
Note that numbers of bits use the B- prefix as integers cannot be used as type parameters in Scala
Type Aliases¶
type | SInt | FixPt[Signed,B32,B0] | Signed 32 bit integer |
type | Index | FixPt[Signed,B32,B0] | Signed 32 bit integer (indexing) |
type | UInt | FixPt[Unsign,B32,B0] | Unsigned 32 bit integer |
Infix methods¶
def !=(y: FixPt[S,I,F]): Bit
def !=(y: Int): Bit
def !=(y: Long): Bit
def !=(y: Float): Bit
def !=(y: Double): Bit
def %(y: FixPt[S,I,B0]): FixPt[S,I,B0]
def %(y: Int): FixPt[S,I,B0]
def %(y: Long): FixPt[S,I,B0]
def %(y: Float): FixPt[S,I,B0]
def %(y: Double): FixPt[S,I,B0]
def &(y: FixPt[S,I,F]): FixPt[S,I,F]
def &(y: Int): FixPt[S,I,F]
def &(y: Long): FixPt[S,I,F]
def &(y: Float): FixPt[S,I,F]
def &(y: Double): FixPt[S,I,F]
def *(y: FixPt[S,I,F]): FixPt[S,I,F]
def *(y: Int): FixPt[S,I,F]
def *(y: Long): FixPt[S,I,F]
def *(y: Float): FixPt[S,I,F]
def *(y: Double): FixPt[S,I,F]
def **(y: Int): FixPt[S,I,F]
def +(y: FixPt[S,I,F]): FixPt[S,I,F]
def +(y: Int): FixPt[S,I,F]
def +(y: Long): FixPt[S,I,F]
def +(y: Float): FixPt[S,I,F]
def +(y: Double): FixPt[S,I,F]
def -(y: FixPt[S,I,F]): FixPt[S,I,F]
def -(y: Int): FixPt[S,I,F]
def -(y: Long): FixPt[S,I,F]
def -(y: Float): FixPt[S,I,F]
def -(y: Double): FixPt[S,I,F]
def /(y: FixPt[S,I,F]): FixPt[S,I,F]
def /(y: Int): FixPt[S,I,F]
def /(y: Long): FixPt[S,I,F]
def /(y: Float): FixPt[S,I,F]
def /(y: Double): FixPt[S,I,F]
def ::(y: Index): Range
def <(y: FixPt[S,I,F]): Bit
def <(y: Int): Bit
def <(y: Long): Bit
def <(y: Float): Bit
def <(y: Double): Bit
def <<(y: FixPt[S,I,B0]): FixPt[S,I,F]
def <<(y: Int): FixPt[S,I,B0]
def <=(y: FixPt[S,I,F]): Bit
def <=(y: Int): Bit
def <=(y: Long): Bit
def <=(y: Float): Bit
def <=(y: Double): Bit
def >(y: FixPt[S,I,F]): Bit
def >(y: Int): Bit
def >(y: Long): Bit
def >(y: Float): Bit
def >(y: Double): Bit
def >=(y: FixPt[S,I,F]): Bit
def >=(y: Int): Bit
def >=(y: Long): Bit
def >=(y: Float): Bit
def >=(y: Double): Bit
def >>(y: FixPt[S,I,B0]): FixPt[S,I,F]
def >>(y: Int): FixPt[S,I,B0]
def by(y: Index): LoopRange
def mkString(): String
def to(): R
def toString(): String
def unary_-(): FixPt[S,I,F]
def until(y: Index): LoopRange
def |(y: FixPt[S,I,F]): FixPt[S,I,F]
def |(y: Int): FixPt[S,I,F]
def |(y: Long): FixPt[S,I,F]
def |(y: Float): FixPt[S,I,F]
def |(y: Double): FixPt[S,I,F]