LongIsBitString

Value members

Concrete methods

def and(a: Long, b: Long): Long
def bitCount(n: Long): Int
def leftShift(n: Long, i: Int): Long
def one: Long
def or(a: Long, b: Long): Long
def rightShift(n: Long, i: Int): Long
def rotateLeft(n: Long, i: Int): Long
def rotateRight(n: Long, i: Int): Long
def width: Int
override def xor(a: Long, b: Long): Long
Definition Classes
def zero: Long

Inherited methods

override def asBoolRing: BoolRing[Long]

Every Boolean algebra is a BoolRing, with multiplication defined as and and addition defined as xor. Bool does not extend BoolRing because, e.g. we might want a Bool[Int] and CommutativeRing[Int] to refer to different structures, by default.

Every Boolean algebra is a BoolRing, with multiplication defined as and and addition defined as xor. Bool does not extend BoolRing because, e.g. we might want a Bool[Int] and CommutativeRing[Int] to refer to different structures, by default.

Note that the ring returned by this method is not an extension of the Rig returned from BoundedDistributiveLattice.asCommutativeRig.

Definition Classes
Inherited from:
Bool
override def dual: Bool[Long]
Definition Classes
Inherited from:
Bool
def imp(a: Long, b: Long): Long
Inherited from:
Bool
def isOne(a: Long)(implicit ev: Eq[Long]): Boolean
Inherited from:
BoundedMeetSemilattice
def isZero(a: Long)(implicit ev: Eq[Long]): Boolean
Inherited from:
BoundedJoinSemilattice
override def join(a: Long, b: Long): Long
Definition Classes
Inherited from:
GenBool
Inherited from:
JoinSemilattice
override def meet(a: Long, b: Long): Long
Definition Classes
Inherited from:
GenBool
Inherited from:
MeetSemilattice
def nand(a: Long, b: Long): Long
Inherited from:
Heyting
def nor(a: Long, b: Long): Long
Inherited from:
Heyting
def nxor(a: Long, b: Long): Long
Inherited from:
Heyting
def without(a: Long, b: Long): Long
Inherited from:
Bool