Skip to content

Rose::BitOps::bitLsb

Extract a single bit.

Synopsis

Declared in <src/Rose/BitOps.h>

template<typename Unsigned>
bool
bitLsb(
    Unsigned src,
    size_t w,
    size_t i);

Description

The bit at position i of value src is returned. If i is out of range for the specified value width then zero is returned.

Return Value

True if the bit is set.

Parameters

Name

Description

src

Input value.

w

Width of the low‐order region.

i

Bit index.

Created with MrDocs