nn::math::GetBits Function

Syntax

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

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

List of Overloaded Member Functions

GetBits(bit32, int, int) Gets a bit string.
GetBits(bit64, int, int) Gets a bit string.

Description of GetBits(bit32, int, int)

Extracts the number of bits given by len, starting from the bit given by pos ([pos+len-1,pos]) from the low-order bits of v. The bit position in v given by pos is taken as the 0th bit.

Description of GetBits(bit64, int, int)

Extracts the number of bits given by len, starting from the bit given by pos ([pos+len-1,pos]) from the low-order bits of v. The bit position in v given by pos is taken as the 0th bit.


CONFIDENTIAL