Endianness swap

Hi ,

For 12345678 input ,the output is 78563412 not 87654321.

How to achieve 87654321.

Thanks