Main Content
bitrol
Bitwise rotate left
Syntax
Description
c = bitrol(
returns
the value of the fixed-point a
, k
)fi
object, a
,
rotated left by k
bits. bitrol
rotates
bits from the most significant bit (MSB) side into the least significant
bit (LSB) side. It performs the rotate left operation on the stored
integer bits of a
.
bitrol
does not check overflow or underflow.
It ignores fimath
properties such as RoundingMode
and OverflowAction
.
a
and c
have the same fimath
and numerictype
properties.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2007b