### __reverse8 -- Reverse the Bytes in a 8 Byte Value

Format

>     #include <builtin.h>

>     unsigned long long __reverse8(unsigned long long num)

Language Level: None
__reverse8 reverses the byte order of num.

Return Value
Returns the byte reversed value.

Example
This example reverses the bytes of foo and prints out both the original and new values.

    #include <stdio.h>
    #include <builtin.h>

    unsigned long long foo = 0x0102030405060708ULL;

    int main(void)
    {
       printf("foo = %.16llx  foo byte reversed = %.16llx\n",
              foo, __reverse8(foo));

       /***************************************************************
          The output should be:

          foo = 0102030405060708  foo byte reversed = 0807060504030201
       ***************************************************************/

       return 0;
    }

__reverse2 -- Reverse the Bytes in a 2 Byte Value
__reverse4 -- Reverse the Bytes in a 4 Byte Value