Bitwise Operations

Bit manipulation and operations

Functions

bitand Bitwise AND of two fi objects
bitor Bitwise OR of two fi objects
bitxor Bitwise exclusive OR of two fi objects
bitandreduce Reduce consecutive slice of bits to one bit by performing bitwise AND operation
bitorreduce Reduce consecutive slice of bits to one bit by performing bitwise OR operation
bitxorreduce Reduce consecutive slice of bits to one bit by performing bitwise exclusive OR operation
bitror Bitwise rotate right
bitshift Shift bits specified number of places
bitrol Bitwise rotate left
bitsll Bit shift left logical
bitsra Bit shift right arithmetic
bitsrl Bit shift right logical
bitcmp Bitwise complement of fi object
bitconcat Concatenate bits of fi objects
bitreplicate Replicate and concatenate bits of fi object
bitget Get bits at certain positions
bitset Set bits at certain positions
bitsliceget Get consecutive slice of bits
getlsb Least significant bit
getmsb Most significant bit
Was this topic helpful?