does anyone know an optimized algo to reverse a dword/qword?
not hex wise (bswap and such) but decimal wise, so i get:
12345d -> 54321d
i could do this with converting it to string and then reverse the string and then convert it back, but that wouldnt be optimised eh ? :)
not hex wise (bswap and such) but decimal wise, so i get:
12345d -> 54321d
i could do this with converting it to string and then reverse the string and then convert it back, but that wouldnt be optimised eh ? :)
Use the FPU to convert the number to bcd format, then do a byte swap and convert back to binary number.