[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function bitrevw - bit reverse a word
Syntax unsigned char bitrevw(unsigned int value);
Prototype in mathhk.h
Remarks bitrevw() will reverse the bits in the word value.
Return value returns the reversed word.
See also bitrevb(), bitrevl()
Example #include <mathhk.h>
main()
{
printf("0x0001 reversed => 0x%04X\n",
bitrevb(0x0001));
}
Program output 0x0001 reversed => 0x8000
See Also:
bitrevb()
bitrevl()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson