nn::math::ExtractBits Function

Syntax

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

Template Arguments

Name Description
T Return Value Type

Arguments

Name Description
in v Target value
in pos The position from the least significant bit
in len Extraction range

Return Values

Value extracted for the specified range of v

Description

Extracts the bit values for the specified range.

Revision History

2011/03/01
Initial version.

CONFIDENTIAL