Template Function Rose::BitOps::shiftLeft#
Defined in File BitOps.h
Function Documentation#
-
template<typename Unsigned>
inline Unsigned Rose::BitOps::shiftLeft(Unsigned src, size_t n, bool b = false)# Left shift a value.
The value
srchas its bits shiftednplaces toward higher order. The
highest order bits are discarded and the
nnew low-order bits are either set or cleared depending on the value ofb. Ifnis greater than or equal to the number of bits insrcthen the return value has either all bits set or all bits cleared depending onb.