Bitwise Operations

Bit manipulation and operations

Functions

bitandBitwise AND of two fi objects
bitorBitwise OR of two fi objects
bitxorBitwise exclusive OR of two fi objects
bitandreduceReduce consecutive slice of bits to one bit by performing bitwise AND operation
bitorreduceReduce consecutive slice of bits to one bit by performing bitwise OR operation
bitxorreduceReduce consecutive slice of bits to one bit by performing bitwise exclusive OR operation
bitrorBitwise rotate right
bitshiftShift bits specified number of places
bitrolBitwise rotate left
bitsllBit shift left logical
bitsraBit shift right arithmetic
bitsrlBit shift right logical
bitcmpBitwise complement of fi object
bitconcatConcatenate bits of fi objects
bitreplicateReplicate and concatenate bits of fi object
bitgetGet bits at certain positions
bitsetSet bits at certain positions
bitslicegetGet consecutive slice of bits
getlsbLeast significant bit
getmsbMost significant bit