Template Function Rose::BitOps::replicateLsb

Template Function Rose::BitOps::replicateLsb#

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 w low-order bits of the return value are filled with replicated bits and the remaining high order bits are copied from src.