Samantha Atkins <sjatkins@mac.com> writes:
> This brings up a second question. How should I do byte order
> conversion for 8 byte ints? I can't use hton ntoh routines as they
> max out at 32 bits. Is there a better way?
Well, there's the PDP-endianness of odious memory, but AFAIK all current
platforms are internally consistent about the ordering of smaller and
larger pieces. Look at the float8 and int64 send/recv routines in our
current sources.
> Also, are floating point numbers guaranteed uniform?
No :-( ... although there are darn few machines anymore that don't
at least claim to follow the IEEE 754 spec.
regards, tom lane