nn::math::GetBits Function

Syntax

template <typename T>
T GetBits(
     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 v.

Description

Gets the bit values from a specified range.


CONFIDENTIAL