Template Function Rose::BitOps::select#
Defined in File BitOps.h
Function Documentation#
-
template<typename Unsigned>
inline Unsigned Rose::BitOps::select(Unsigned cond, Unsigned a, Unsigned b)# Combine two values based on a bit mask.
The return value has bits from
aandbdepending on the maskcond. If the mask bitiis set, then the return value biticomes froma, otherwise it comes fromb.