nw::ut::BitExtract Function

Syntax

template <typename OutputT>
OutputT BitExtract(
     OutputT bits,
     int pos,
     int len = 1
);

Arguments

Name Description
in bits Original bit string
in pos Position of the lowest order bit of the bit string to be extracted from bits
in len Bit length to be extracted

Return Values

Returns the extracted bit string.

Description

Extracts a partial bit string from the specified bit string.


CONFIDENTIAL