xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NumMirrX()

Mirrors bits of a numeric integer value.

Syntax

NumMirr( <nMaxBits>, ;
         <nInteger>|<cHex> ) --> nInteger

Arguments

<nMaxBits>
This numeric value specifies the number of bits to use in the operation, beginning with the least significant bit (LSB). The value of <nMaxBits> must be in the range between 1 and 32.
<nInteger>
A numeric integer value must be passed as second parameter.
<cHex>
Alternatively, the integer can be passed as a hex-encoded character string (see NumToHex()).

Return

The function returns a numeric integer value with the least significant <nMaxBits> bits set in reversed order.

Info

See also:NumAndX(), NumMirr(), NumNotX(), NumOrX(), NumRolX()
Category: CT:NumBits , Numbers and Bits , xHarbour extensions
Source:ct\bit3.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe