Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Floating point VS Integer Math.

Author: Bruce Moreland

Date: 16:15:24 05/14/98

Go up one level in this thread



On May 14, 1998 at 18:32:26, Ivan Tirado wrote:

>   In contemporary chess programs, what gets more use:
>floating point math or integer math? If integer math is preferred, how
>do different processors handle it ( ie perform )? Can a chess program be
>optimized to use MMX if integer math is used? In the case floating point
>is preferred, why this is so?

There is probably some guy out there working furiously on a program, and
his big angle is that he does floating point math in just the right
spots, or so he thinks.

On all the micros that I know of, you should use integers if you can.
Most chess programs are extreme examples of optimization, so they'll
tend to not use floating point at all.

If there is a processor where floating point is faster, or some
combination of floating point and integer is fastest, there is some
lunatic out there right now writing floating point chess program code in
assembly language.

And if the assembler doesn't do exactly what he wants, he'll input the
op-codes by hand into a hex editor.

bruce



This page took 0.01 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.