Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Sep 1998 08:27:40 +1000 (EST)
From:      John Birrell  <jb@cimlogic.com.au>
To:        shimon@simon-shapiro.org
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: Help - No htonq, ntohq
Message-ID:  <199809042227.IAA12990@cimlogic.com.au>
In-Reply-To: <XFMail.980904181025.shimon@simon-shapiro.org> from Simon Shapiro at "Sep 4, 98 06:10:25 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Simon Shapiro wrote:
> Can anyone suggest a clean, portable way to support binary competability on
> 64bit integers between an Alpha and IA?

int64_t & u_int64_t

> We have hton{l,s} but these are good only for 16 & 32 bit values.

I think hton{l,s} should be kept strictly for _network_ code.

> What is the exact Alpha byte order?  12345678, 87654321, 43218765, ...
                                       ^^^^^^^^
Little endian.

-- 
John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809042227.IAA12990>