Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Simple optimization question

Author: Anthony Cozzie

Date: 10:32:07 01/09/04

Go up one level in this thread


>XOR eax,eax
>COMP x
>CMOVE eax,20
>ADD y, eax

unfortunately, there is no CMOV with constants in X86.  So to get the CMOV to
work and correctly avoid the branch, you need 2 additional registers.  Which, of
course, you are not likely to have.  Which is why we should all go out and buy
Alphas . . . .

anthony



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.