delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/12/00:20:14

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
To: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
From: Chirayu Krishnappa <chirayu AT radiolink DOT net>
Subject: Re: odd or even 0's of 1's
Cc: djgpp AT delorie DOT com

      
>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.
============================================================================
==========

- Raw text -


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