Date: Sat, 12 Jul 1997 00:18:27 -0400 (EDT) Message-Id: <1.5.4.16.19970712095026.127f1fc2@giasbga.vsnl.net.in> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Christoph Kukulies From: Chirayu Krishnappa Subject: Re: odd or even 0's of 1's Cc: djgpp AT delorie DOT com Precedence: bulk >You'ld be better off using 'setpe' rather than 'jpe', as it't much less >expensive: > >asm volatile("or %1,%1;setpe %b0":"=g"(result):"r"(value):"cc"); > Thanks. I think this was the most efficient of all. Thanks to everyone who replied. I wanted to try something like this (i knew the parity flag) but I'm pretty bad with inline assembly. Why cant DJGPP have Borland style asm too, u know asm {........}, so the quotes r not used. Thanks n Bye, Chirayu Krishnappa: ------------------ e-mail: chirayu AT poboxes DOT com Phone: 91 080 3332616. ============================================================================ ==========