
80bit double from mac to 64bit double to pc
Quote:
> Hello,
> Although not an ATL question...
> I'm reading an 80bit double from a mac file, and need to convert that
number
> to 64bit double on pc.
> I have a function that does the conversion from 80bit to 64bit, but I also
> think I must account for big-endian/little-endian. Does
> anybody know how to do that for that data type?
Just a guess...
Swap the bytes like you would for a longword followed by a longword followed
by a word. After all, both machines are 32 bit systems:
-1- -2- -3- -4- -5- -6- -7- -8- -9- -A- Mac
-4- -3- -2- -1- -8- -7- -6- -5- -A- -9- PC
HTH, Loz.