nn::math::GetBits Function

Syntax

template <typename T>
T GetBits(
     bit64 v,
     int pos,
     int len
);

Template Arguments

Name Description
T Return value type.

Arguments

Name Description
in v Value to operate on.
in pos Position from which to start extracting, 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