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 ? :)
Posted on 2001-09-19 07:56:21 by Anonymous
Use the FPU to convert the number to bcd format, then do a byte swap and convert back to binary number.
Posted on 2001-09-19 08:48:44 by bitRAKE