help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: htonl() htons()


From: Hans-Bernhard Broeker
Subject: Re: htonl() htons()
Date: Tue, 22 Oct 2002 14:03:22 +0200 (MET DST)

On Tue, 22 Oct 2002, Hans Aberg wrote:

> Does anybody know what should they be on Motorola RISC CPU's?

The should be no-ops for the 68K family, AFAIK.  Motorola has a tradition
of being big-endian, like SPARC, whose maker Sun invented this function
IIRC. Intel is little-endian, so they get to pay the performance price of
actually having to do something for these two functions.  PowerPC's can
even switch back and forth, so it's a question for the operating system to
decide, there.

In case of doubt, you might want to check the glibc sources for your
platform.

-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]