home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!news.cs.hut.fi!too
- From: too@cardhu.cs.hut.fi (Tomi Ollila)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: What is htonl() ?
- Date: 23 Dec 92 15:46:43
- Organization: /u/users10/too/.organization
- Lines: 17
- Distribution: world
- Message-ID: <TOO.92Dec23154643@cardhu.cs.hut.fi>
- References: <72250@cup.portal.com>
- NNTP-Posting-Host: cardhu.cs.hut.fi
- In-reply-to: Counsellor@cup.portal.com's message of Tue, 22 Dec 92 23:10:38 PST
-
- In article <72250@cup.portal.com> Counsellor@cup.portal.com (Benjamin Counsellor Reich) writes:
-
- I am stumped by one line of code:
-
- *lmark = htonl(*lmark);
-
- that function (Macro) return 32 bit value of its host byte order value in
- network byte order. because 680x0 processor uses network byte order in 16
- and 32 bit values (LITTLE ENDIAN) , that function is implemented as macro
- whis does no conversion:
-
- #define htonl(x) (x).
-
- .. in that case you couild just remove the line and reduce a few cycles
- from execution time, but it would cause combabitily problems.
-
- Tomi
-