NUMROLX()

$SYNTAX$

Arguments

<SignificativeBits> Designate a number in the range of 0 to 32, indicating the LSB of nLONGx|cHexLONGx that will be used.

<nLONG | cHexLONG> Designate either decimal or hexadecimal number string.

<nWORD | cHexWORD> Designate a number of rotations in the range of 1 to <nSignificativeBits>; as either numeric or hexadecimal.

Returns

NUMROLX() return the rotation result.

Description

This function is similar to NUMROL() function with a significative change. The first parameter indicate the quantity of lower bits of nLONG are used. When the high bit rotates it is not just moved out to the left, it is also moved in on the right. The not rotated bits is not moved.

TODO: add documentation

Status

Started

Compliance

NUMROLX() is a new function in the CT3-library for Harbour.

Platforms

All

Files

Source is bit3.c, library is libct.

See Also