Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Forget what I wrote, my testing methode was biased (NT)

Author: Álvaro Begué

Date: 10:24:08 07/21/04

Go up one level in this thread


>On July 21, 2004 at 10:32:02, Mathieu Pagé wrote:
>>[...]
>>__forceinline int max(int x, int y)
>>{
>>	return x - ((x - y) & ((x - y) >> (sizeof(int) * 8 - 1))); // max(x, y)
>>}
>>

I tried that type of thing before, but actually the compiler already uses
conditional moves when -march=pentium4 is specified, so there is nothing faster
that I can think of.




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.