delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/02/08:30:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: huli_ebtyt AT list DOT ru (Andrey)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 16 bit integers
Date: 2 Mar 2004 05:29:47 -0800
Organization: http://groups.google.com
Lines: 10
Message-ID: <baec0bf0.0403020529.8f42598@posting.google.com>
References: <baec0bf0 DOT 0403012323 DOT 10896c3 AT posting DOT google DOT com> <esd840d8dde7matafu4vd11bsvagshadkl AT 4ax DOT com>
NNTP-Posting-Host: 212.220.74.140
X-Trace: posting.google.com 1078234187 14919 127.0.0.1 (2 Mar 2004 13:29:47 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Tue, 2 Mar 2004 13:29:47 +0000 (UTC)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

And what if I want to process an array of 16-bit data loaded from a file,
should I use?:

a = *(pointer)&0x0000ffff;
b = *(pointer)>>16;
...
work with a, b
...

I think it is not optimal...

- Raw text -


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