I find that swapbytes doesn't seem to be behaving correctly for my problem. I have a 64 bits hexidecimal string printed in big-endian: 'b0120c0a7799ba3e'
Manually swapping the bytes give me the expected answer:
If I follow the example code in swapbytes however, it seems behave incorrectly. Either:
The function seem to work correctly for a single precision hexadecimal:
Am I missing something, I can certainly write some loops to parse the string but is there a better solution?