Template Function Rose::BitOps::replicateLsb#
Defined in File BitOps.h
Function Documentation#
-
template<typename Unsigned>
inline Unsigned Rose::BitOps::replicateLsb(Unsigned src, size_t w, size_t n)# Replicate low-order bits to fill region without affecting other bits.
This is identical to replicate except that instead of filling the entire return value with the replicated bits, at most
wlow-order bits of the return value are filled with replicated bits and the remaining high order bits are copied fromsrc.