trait SIntInteger extends SIntRing with SIntIsReal with ConvertableToSInt with ConvertableFromSInt with BinaryRepresentationSInt with IntegerBits[SInt] with hasContext
- Alphabetic
- By Inheritance
- SIntInteger
- IntegerBits
- Integer
- RealBits
- Real
- BinaryRepresentationSInt
- BinaryRepresentation
- ConvertableFromSInt
- ChiselConvertableFrom
- ConvertableToSInt
- ConvertableTo
- ConvertableTo
- SIntIsReal
- SIntSigned
- SIntOrder
- IsIntegral
- IsReal
- Signed
- Order
- PartialOrder
- Eq
- SIntRing
- hasContext
- Ring
- Ring
- Rng
- AdditiveCommutativeGroup
- AdditiveGroup
- Rig
- MultiplicativeMonoid
- Semiring
- MultiplicativeSemigroup
- AdditiveCommutativeMonoid
- AdditiveCommutativeSemigroup
- AdditiveMonoid
- AdditiveSemigroup
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- SIntInteger → Signed
- def additive: CommutativeGroup[SInt]
- Definition Classes
- AdditiveCommutativeGroup → AdditiveCommutativeMonoid → AdditiveCommutativeSemigroup → AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
- def asFixed(a: SInt, proto: FixedPoint): FixedPoint
- Definition Classes
- ConvertableFromSInt → ChiselConvertableFrom
- def asFixed(a: SInt): FixedPoint
- Definition Classes
- ConvertableFromSInt → ChiselConvertableFrom
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asInterval(a: SInt, proto: Interval): Interval
- Definition Classes
- ConvertableFromSInt → ChiselConvertableFrom
- def asInterval(a: SInt): Interval
- Definition Classes
- ConvertableFromSInt → ChiselConvertableFrom
- def asReal(a: SInt): DspReal
- Definition Classes
- ConvertableFromSInt → ChiselConvertableFrom
- 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 clip(a: SInt, b: SInt): SInt
- Definition Classes
- BinaryRepresentationSInt → BinaryRepresentation
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compare(x: SInt, y: SInt): ComparisonBundle
- def context: DspContext
- Definition Classes
- hasContext
- def context_abs(a: SInt): SInt
- Definition Classes
- SIntInteger → Signed
- def div2(a: SInt, n: Int): SInt
- Definition Classes
- SIntInteger → BinaryRepresentation
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → 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 fromAlgebraic(a: Algebraic): SInt
- Definition Classes
- Real → ConvertableTo
- def fromBigDecimal(n: BigDecimal): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- def fromBigInt(n: BigInt): SInt
- Definition Classes
- SIntInteger → ConvertableToSInt → ConvertableTo → Ring
- def fromByte(n: Byte): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- def fromDouble(d: Double, a: SInt): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- def fromDouble(n: Double): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- def fromDoubleWithFixedWidth(d: Double, a: SInt): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- def fromFloat(n: Float): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- def fromInt(n: Int): SInt
- Definition Classes
- SIntInteger → ConvertableToSInt → ConvertableTo → Ring
- def fromLong(n: Long): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- def fromRational(a: Rational): SInt
- Definition Classes
- Real → ConvertableTo
- def fromReal(a: spire.math.Real): SInt
- Definition Classes
- Real → ConvertableTo
- def fromShort(n: Short): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- def fromType[B](n: B)(implicit c: ConvertableFrom[B]): SInt
- Definition Classes
- ConvertableToSInt → ConvertableTo
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def intPart(a: SInt): SInt
- Definition Classes
- ConvertableFromSInt → ChiselConvertableFrom
- 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 isOne(a: SInt)(implicit ev: algebra.Eq[SInt]): Boolean
- Definition Classes
- MultiplicativeMonoid
- 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 isZero(a: SInt)(implicit ev: algebra.Eq[SInt]): Boolean
- Definition Classes
- AdditiveMonoid
- 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 minus(f: SInt, g: SInt): SInt
- Definition Classes
- SIntRing → AdditiveGroup
- def minusContext(f: SInt, g: SInt): SInt
- def mod(a: SInt, b: SInt): SInt
- Definition Classes
- SIntIsReal → IsIntegral
- def mul2(a: SInt, n: Int): SInt
- Definition Classes
- BinaryRepresentation
- def multiplicative: Monoid[SInt]
- Definition Classes
- MultiplicativeMonoid → MultiplicativeSemigroup
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def negate(f: SInt): SInt
- Definition Classes
- SIntRing → AdditiveGroup
- def negateContext(f: SInt): SInt
- def neqv(x: SInt, y: SInt): Bool
Returns
false
ifx
andy
are equivalent,true
otherwise. - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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 one: SInt
- Definition Classes
- SIntRing → MultiplicativeMonoid
- 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 plus(f: SInt, g: SInt): SInt
- Definition Classes
- SIntRing → AdditiveSemigroup
- def plusContext(f: SInt, g: SInt): SInt
- 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 positivePow(a: SInt, n: Int): SInt
- Attributes
- protected[this]
- Definition Classes
- MultiplicativeSemigroup
- def positiveSumN(a: SInt, n: Int): SInt
- Attributes
- protected[this]
- Definition Classes
- AdditiveSemigroup
- def pow(a: SInt, n: Int): SInt
- Definition Classes
- MultiplicativeMonoid → MultiplicativeSemigroup
- def product(as: TraversableOnce[SInt]): SInt
- Definition Classes
- MultiplicativeMonoid
- 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 shl(a: SInt, n: UInt): SInt
- Definition Classes
- BinaryRepresentationSInt → BinaryRepresentation
- def shl(a: SInt, n: Int): SInt
- Definition Classes
- BinaryRepresentationSInt → BinaryRepresentation
- def shr(a: SInt, n: UInt): SInt
- Definition Classes
- BinaryRepresentationSInt → BinaryRepresentation
- def shr(a: SInt, n: Int): SInt
- Definition Classes
- BinaryRepresentationSInt → BinaryRepresentation
- 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 signBit(a: SInt): Bool
- Definition Classes
- SIntInteger → BinaryRepresentation
- 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 sum(as: TraversableOnce[SInt]): SInt
- Definition Classes
- AdditiveMonoid
- def sumN(a: SInt, n: Int): SInt
- Definition Classes
- AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def times(f: SInt, g: SInt): SInt
- Definition Classes
- SIntRing → MultiplicativeSemigroup
- def timesContext(f: SInt, g: SInt): SInt
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trimBinary(a: SInt, n: Option[Int]): SInt
- Definition Classes
- BinaryRepresentationSInt → BinaryRepresentation
- def trimBinary(a: SInt, n: Int): SInt
- Definition Classes
- BinaryRepresentationSInt → BinaryRepresentation
- def truncate(a: SInt): SInt
- Definition Classes
- IsIntegral → IsReal
- def tryProduct(as: TraversableOnce[SInt]): Option[SInt]
- Definition Classes
- MultiplicativeMonoid → MultiplicativeSemigroup
- def trySum(as: TraversableOnce[SInt]): Option[SInt]
- Definition Classes
- AdditiveMonoid → AdditiveSemigroup
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def zero: SInt
- Definition Classes
- SIntRing → AdditiveMonoid