bitrol
Bitwise rotate left
Syntax
c = bitrol(a, k)
Description
c = bitrol(
returns the value of the fixed-pointa
,k
)fi
object,a
, rotated left byk
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 ofa
.
bitrol
does not check overflow or underflow. It ignoresfimath
properties such asRoundingMode
andOverflowAction
.
a
andc
have the samefimath
andnumerictype
properties.
Examples
Input Arguments
Extended Capabilities
Introduced in R2007b
Was this topic helpful?