delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/12/02:46:04

Message-ID: <19970712084842.29019@gil.physik.rwth-aachen.de>
Date: Sat, 12 Jul 1997 08:48:42 +0200
From: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
To: Chirayu Krishnappa <chirayu AT radiolink DOT net>
Cc: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>,
djgpp AT delorie DOT com
Subject: Re: odd or even 0's of 1's
References: <1 DOT 5 DOT 4 DOT 16 DOT 19970712095026 DOT 127f1fc2 AT giasbga DOT vsnl DOT net DOT in>
Mime-Version: 1.0
In-Reply-To: <1.5.4.16.19970712095026.127f1fc2@giasbga.vsnl.net.in>; from Chirayu Krishnappa <chirayu@radiolink.net> on Sat, Jul 12, 1997 at 06:22:27AM +0200

On Sat, Jul 12, 1997 at 06:22:27AM +0200, Chirayu Krishnappa wrote:
>       
> >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.

Because DJGPP is GNU, and GNU uses GAS which uses AT&T syntax.
Once being used to this syntax, you will love it :-)
(See Brennan's comment in Brennans inline assembly page)

> 
> Thanks n Bye,
> 
> Chirayu Krishnappa:
> ------------------
> e-mail: chirayu AT poboxes DOT com
> Phone:  91 080 3332616.
> ============================================================================
> ==========

-- 
--Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de

- Raw text -


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