SOURCE: qdev_macros.txt 1.16 (12/09/2014) English INDEP - PUBLIC
----------------------------------------------------------------------------
NAME
QDEV_HLP_ROUNDPOW2() - Rounds 32 bit integer to nearest
power of 2 number.
SYNOPSIS
res = QDEV_HLP_ROUNDPOW2(val);
ULONG QDEV_HLP_ROUNDPOW2([ULONG]);
FUNCTION
This macro allows to round the input value to the power
of 2 using bitwise trick.
INPUTS
val - 32 bit only value.
RETURNS
Returns value to the power of 2.
BASES
None.
NOTES
None.
SEE ALSO
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
|