trait SIntIsReal extends IsIntegral[SInt] with SIntOrder with SIntSigned with hasContext
- Alphabetic
- By Inheritance
- SIntIsReal
- SIntSigned
- SIntOrder
- hasContext
- IsIntegral
- IsReal
- Signed
- Order
- PartialOrder
- Eq
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def abs(a: SInt): SInt
An idempotent function that ensures an object has a non-negative sign.
An idempotent function that ensures an object has a non-negative sign.
- Definition Classes
- Signed
- abstract def context_abs(a: SInt): SInt
- Definition Classes
- Signed
- abstract def getClass(): Class[_ <: AnyRef]
- Definition Classes
- Any
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ceil(a: SInt): SInt
Rounds
a
the nearest integer that is greater than or equal toa
.Rounds
a
the nearest integer that is greater than or equal toa
.- Definition Classes
- IsIntegral → IsReal
- def compare(x: SInt, y: SInt): ComparisonBundle
- def context: DspContext
- Definition Classes
- hasContext
- def equals(arg0: Any): Boolean
- Definition Classes
- Any
- def eqv(x: SInt, y: SInt): Bool
Returns
true
ifx
andy
are equivalent,false
otherwise.Returns
true
ifx
andy
are equivalent,false
otherwise.- Definition Classes
- SIntOrder → Order → PartialOrder → Eq
- def floor(a: SInt): SInt
Rounds
a
the nearest integer that is less than or equal toa
.Rounds
a
the nearest integer that is less than or equal toa
.- Definition Classes
- IsIntegral → IsReal
- def gt(x: SInt, y: SInt): Bool
- Definition Classes
- SIntOrder → Order → PartialOrder
- def gteqv(x: SInt, y: SInt): Bool
- Definition Classes
- SIntOrder → Order → PartialOrder
- def hashCode(): Int
- Definition Classes
- Any
- def isEven(a: SInt): Bool
- Definition Classes
- IsIntegral
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOdd(a: SInt): Bool
- Definition Classes
- SIntIsReal → IsIntegral
- def isSignNegative(a: SInt): Bool
- Definition Classes
- SIntSigned → Signed
- def isSignNonNegative(a: SInt): Bool
- Definition Classes
- Signed
- def isSignNonPositive(a: SInt): Bool
- Definition Classes
- Signed
- def isSignNonZero(a: SInt): Bool
- Definition Classes
- Signed
- def isSignPositive(a: SInt): Bool
- Definition Classes
- Signed
- def isSignZero(a: SInt): Bool
- Definition Classes
- SIntSigned → Signed
- def isWhole(a: SInt): Bool
Returns
true
iffa
is a an integer.Returns
true
iffa
is a an integer.- Definition Classes
- IsIntegral → IsReal
- def lt(x: SInt, y: SInt): Bool
- Definition Classes
- SIntOrder → Order → PartialOrder
- def lteqv(x: SInt, y: SInt): Bool
- Definition Classes
- SIntOrder → Order → PartialOrder
- def max(x: SInt, y: SInt): SInt
- Definition Classes
- Order
- def min(x: SInt, y: SInt): SInt
- Definition Classes
- Order
- def mod(a: SInt, b: SInt): SInt
- Definition Classes
- SIntIsReal → IsIntegral
- def neqv(x: SInt, y: SInt): Bool
Returns
false
ifx
andy
are equivalent,true
otherwise. - def on[B <: Data](f: (B) => SInt): Order[B]
Defines an order on
B
by mappingB
toA
usingf
and usingA
s order to orderB
.Defines an order on
B
by mappingB
toA
usingf
and usingA
s order to orderB
.- Definition Classes
- Order → PartialOrder → Eq
- def partialCompare(x: SInt, y: SInt): ValidIO[ComparisonBundle]
Result of comparing
x
withy
.Result of comparing
x
withy
. Returns ValidIO[ComparisonBundle] withvalid
false if operands are not comparable. If operands are comparable,bits.lt
will be true ifx
<y
andbits.eq
will be true ifx
=y
- Definition Classes
- Order → PartialOrder
- def pmax(x: SInt, y: SInt): ValidIO[SInt]
Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.
Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.
- Definition Classes
- PartialOrder
- def pmin(x: SInt, y: SInt): ValidIO[SInt]
Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.
Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.
- Definition Classes
- PartialOrder
- def reverse: Order[SInt]
Defines an ordering on
A
where all arrows switch direction.Defines an ordering on
A
where all arrows switch direction.- Definition Classes
- Order → PartialOrder
- def round(a: SInt): SInt
Rounds
a
to the nearest integer (When the fractional part is 0.5, tie breaking rounds to positive infinity i.e.Rounds
a
to the nearest integer (When the fractional part is 0.5, tie breaking rounds to positive infinity i.e. round half up)- Definition Classes
- IsIntegral → IsReal
- def sign(a: SInt): Sign
Returns Zero if
a
is 0, Positive ifa
is positive, and Negative isa
is negative.Returns Zero if
a
is 0, Positive ifa
is positive, and Negative isa
is negative.- Definition Classes
- Signed
- def signum(a: SInt): ComparisonBundle
Returns 0 if
a
is 0, > 0 ifa
is positive, and < 0 isa
is negative.Returns 0 if
a
is 0, > 0 ifa
is positive, and < 0 isa
is negative.- Definition Classes
- SIntSigned → Signed
- def toString(): String
- Definition Classes
- Any
- def truncate(a: SInt): SInt
- Definition Classes
- IsIntegral → IsReal