X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.131.211 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: 16 bit integers Organization: Systematic Software Message-ID: References: X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 Date: Thu, 04 Mar 2004 02:17:02 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw3no 1078366622 24.71.223.147 (Wed, 03 Mar 2004 19:17:02 MST) NNTP-Posting-Date: Wed, 03 Mar 2004 19:17:02 MST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 2 Mar 2004 05:55:02 -0800 in comp.os.msdos.djgpp, "Dave Bloodgood" wrote: >"Andrey" wrote in message >news:baec0bf0 DOT 0403020529 DOT 8f42598 AT posting DOT google 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... >Use "short"'s instead of Int ( which are really long ). They can be signed >or unsigned, and are guaranteed to be 16 bits ... at least 16 bits! -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca) fake address use address above to reply