delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/09/27/14:56:13

Message-Id: <3.0.32.19990927171146.00c72100@pop.xs4all.nl>
X-Sender: diep AT pop DOT xs4all DOT nl
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Mon, 27 Sep 1999 17:11:48 +0200
To: pgcc AT delorie DOT com
From: Vincent Diepeveen <diep AT xs4all DOT nl>
Subject: Re: using cmov* not that great
Mime-Version: 1.0
Reply-To: pgcc AT delorie DOT com

At 07:37 AM 9/27/99 +0200, you wrote:
>Vincent Diepeveen wrote:
>> 
>> Hello,
>> 
>> 
>> For my search inside loops very important is next pattern:
>> 
>> int *p,u,*array;
>> 
>> if( !PATTERN )
>>   p += array[u];
>> 
>> Now pattern checks for zero. So if non-zero then
>> p += array[u] is applied.
>> 
>> Pattern is also an array reference. something like !s[t[u]]
>> 
>
>Hmm, isn't cadd* the thing you would need? What about modifying
>your code to

Well i actually don't care how as long as branches go away :)
I'm pretty sure that JNE is not the kind of instruction i like
to see there, which hapens


> tmp = 0
> if( !PATTERN )
>   tmp = array[u];
> p += tmp;

doesn't work. tmp += array[u] doesn't either.

Vincent Diepeveen
diep AT xs4all DOT nl

---
...en verder ben ik van mening dat Dap het heelal in 
dient te worden gestraald...

- Raw text -


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