c = bitandreduce(a) performs
a bitwise AND operation on the entire set of bits
in the fixed-point input, a, and returns the result
as an unsigned integer of word length 1.
c = bitandreduce(a, lidx) performs
a bitwise AND operation on a consecutive range
of bits, starting at position lidx and ending at
the LSB (the bit at position 1).
c = bitandreduce(a, lidx, ridx) performs
a bitwise AND operation on a consecutive range
of bits, starting at position lidx and ending at
position ridx.
The bitandreduce arguments must satisfy the
following condition:
The only element in output c with a value of 1 is the 4th element. This is because it is the only element of a that had only 1's between positions fi(4) and 1.
Perform Bitwise AND Operation on a Range of Bits in a Matrix
There is only one element in output c with a value of 1. This condition occurs because the corresponding element in a is the only element with only 1's between positions 3 and 1.
Input array, specified as a scalar, vector, matrix, or multidimensional
array of fi objects.
bitandreduce supports both signed and unsigned
inputs with arbitrary scaling. The sign and scaling properties do
not affect the result type and value. bitandreduce performs
the operation on a two's complement bit representation of the stored
integer.
Data Types: fixed-point fi
lidx — Start position of range scalar
Start position of range specified as a scalar of built-in type. lidx represents
the position in the range closest to the MSB.