nn::math::ExtractBits Function

Syntax

template <typename T>
T ExtractBits(
     bit32 v,
     int pos,
     int len
);

Template Arguments

Name Description
T Return value type.

Arguments

Name Description
in v Value to operate on.
in pos A position relative to the lowest bit.
in len Range to extract.

Return Values

Value extracted from the specified range of v.

Description

Extracts the bit values from a specified range.

Revision History

2011/03/01
Initial version.

CONFIDENTIAL