This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bluesky idea: __attribute__ (netorder)
On Sun, Sep 06, 1998 at 05:59:22PM -0700, Richard Henderson wrote:
> On Sun, Sep 06, 1998 at 11:02:13AM -0400, Tim Hollebeek wrote:
> > There are hundreds of ways to do this that do not include modifying
> > the compiler and writing nonstandard C/C++. For example:
>
> Yes, and I'd agree if there weren't quite a few machines that can do
> byte swapping with special instructions, either in parallel with a
> load, or just in a register.
Please note you can use still use inline __asm__ in your version of
ntohl etc.
-- Jamie