trait BitwiseOperations[Repr <: BitwiseOperations[Repr, Idx], Idx] extends AnyRef
Bitwise operations on a value of type Repr
.
- Repr
type that supports that supports bitwise operations
- Idx
numeric index type
- Source
- BitwiseOperations.scala
- Alphabetic
- By Inheritance
- BitwiseOperations
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def and(other: Repr): Repr
Returns a bitwise AND of this value with the specified value.
Returns a bitwise AND of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
- abstract def not: Repr
Returns a bitwise complement of this value.
- abstract def or(other: Repr): Repr
Returns a bitwise OR of this value with the specified value.
Returns a bitwise OR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
- abstract def rotateLeft(n: Idx): Repr
Returns a value of the same size with each bit circularly shifted to the left
n
bits. - abstract def rotateRight(n: Idx): Repr
Returns a value of the same size with each bit circularly shifted to the right
n
bits. - abstract def shiftLeft(n: Idx): Repr
Returns a value of the same size with each bit shifted to the left
n
bits. - abstract def shiftRight(n: Idx, signExtension: Boolean): Repr
Returns a value of the same size with each bit shifted to the right
n
bits.Returns a value of the same size with each bit shifted to the right
n
bits.- signExtension
whether the
n
left-msot bits should take on the value of bit 0
- abstract def xor(other: Repr): Repr
Returns a bitwise XOR of this value with the specified value.
Returns a bitwise XOR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def &(other: Repr): Repr
Returns a bitwise AND of this value with the specified value.
Returns a bitwise AND of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
- final def <<(n: Idx): Repr
Returns a value of the same size with each bit shifted to the left
n
bits. - final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def >>(n: Idx): Repr
Returns a value of the same size with each bit shifted to the right
n
bits where then
left-most bits are sign extended. - final def >>>(n: Idx): Repr
Returns a value of the same size with each bit shifted to the right
n
bits where then
left-most bits are low. - final def ^(other: Repr): Repr
Returns a bitwise XOR of this value with the specified value.
Returns a bitwise XOR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def iff(other: Repr): Repr
Returns a bitwise if-and-only-if of this value with the specified value.
Returns a bitwise if-and-only-if of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
- def implies(other: Repr): Repr
Returns a bitwise implication of this value with the specified value.
Returns a bitwise implication of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def nand(other: Repr): Repr
Returns a bitwise NAND of this value with the specified value.
Returns a bitwise NAND of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nor(other: Repr): Repr
Returns a bitwise NOR of this value with the specified value.
Returns a bitwise NOR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def unary_~: Repr
Returns a bitwise complement of this value.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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 |(other: Repr): Repr
Returns a bitwise OR of this value with the specified value.
Returns a bitwise OR of this value with the specified value.
The resulting value's size is the minimum of this value's size and the specified value's size.