Re: le32_to_cpu() help...

Ralf Baechle (ralf@uni-koblenz.de)
Fri, 5 Nov 1999 03:32:24 +0100


On Wed, Nov 03, 1999 at 09:09:51AM +0000, H. Peter Anvin wrote:

> > The names tell it. le32_to_cpu is used for convesions from 32bit little
> > endian data into CPUs endianness, cpu_to_le32 is used for convesions from
> > CPU endianness to little endian 32bit data.
> > Actually, both macros do the same thing, but one should make the differences
> > clear to make code more readable so that anyone can quickly find out whether
> > some data is kept in native endianness or some particular one.
> >
>
> Both macros do the same thing on all *currently supported*
> architectures. One never know when a funny thing from Mars shows up;
> perhaps a 48-bit architecture, who knows...

Honeywell had 9-bit based machines, that is longs / pointer were 36 bit.

I hope these machines are all on Mars today :-)

Ralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/