delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/20/04:03:47

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.1000120085657.21977O-100000@is>
References: <865adi$tbm$1 AT bird DOT wu-wien DOT ac DOT at> <38863BDF DOT 44 AT erols DOT com> <cfvc8sk341im9jjtgm1eugovbnh4km6129 AT 4ax DOT com>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
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: <cfvc8sk341im9jjtgm1eugovbnh4km6129@4ax.com>
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019