From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Casting pointers Date: Thu, 20 Jan 2000 08:57:40 +0200 Organization: NetVision Israel Lines: 12 Message-ID: References: <865adi$tbm$1 AT bird DOT wu-wien DOT ac DOT at> <38863BDF DOT 44 AT erols DOT com> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 948351652 24313 199.203.121.2 (20 Jan 2000 07:00:52 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 20 Jan 2000 07:00:52 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 20 Jan 2000, Damian Yerrick wrote: > An inline assembly implementation might look like this: > load number into eax 0123 > swap bytes of ax 0132 > swap shorts of eax 3201 > swap bytes of ax 3210 > > Or is this already how it works? Take a look at include/netinet/in.h, it's all there.