Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: the winner is: function pointer :)

Author: Jeremiah Penery

Date: 17:16:34 07/08/03

Go up one level in this thread


AthlonXP 1600MHz, MSVC .NET, all suitable optimizations (/Ox /G6 /GF /Gr /Ob2
/Oi /Oy /Ot /Og).  I think I have the most up-to-date version of all these
functions that were given.  The array of function pointers is *really* fast.

lonesome one bit:
Simple   0x20e17a76, time = 2.453
Andrew   0x20e17a76, time = 2.524
Tim      0x20e17a76, time = 2.013
Heiner   0x20e17a76, time = 1.952
Reinhard 0x20e17a76, time = 2.033
switch   0x20e17a76, time = 1.893
funcp    0x20e17a76, time = 1.773

up to two one bits:
Simple   0x226c8b78, time = 2.643
Andrew   0x226c8b78, time = 2.764
Tim      0x226c8b78, time = 2.514
Heiner   0x226c8b78, time = 2.253
Reinhard 0x226c8b78, time = 2.354
switch   0x226c8b78, time = 2.043
funcp    0x226c8b78, time = 1.892

up to three one bits:
Simple   0x23f27d79, time = 2.784
Andrew   0x23f27d79, time = 2.995
Tim      0x23f27d79, time = 2.834
Heiner   0x23f27d79, time = 2.583
Reinhard 0x23f27d79, time = 2.754
switch   0x23f27d79, time = 2.183
funcp    0x23f27d79, time = 2.113

eight random bits:
Simple   0x83001752, time = 4.357
Andrew   0x83001752, time = 4.566
Tim      0x83001752, time = 7.331
Heiner   0x83001752, time = 4.466
Reinhard 0x83001752, time = 6.189
switch   0x83001752, time = 2.053
funcp    0x83001752, time = 1.873

eight random bits high one probability:
Simple   0xb78285c8, time = 3.765
Andrew   0xb78285c8, time = 4.417
Tim      0xb78285c8, time = 10.264
Heiner   0xb78285c8, time = 4.477
Reinhard 0xb78285c8, time = 8.652
switch   0xb78285c8, time = 2.414
funcp    0xb78285c8, time = 2.233

eight one bits 0xff:
Simple   0x0642ac00, time = 1.152
Andrew   0x0642ac00, time = 1.462
Tim      0x0642ac00, time = 12.458
Heiner   0x0642ac00, time = 1.902
Reinhard 0x0642ac00, time = 9.985
switch   0x0642ac00, time = 0.961
funcp    0x0642ac00, time = 1.132



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.