Computer Chess Club Archives


Search

Terms

Messages

Subject: Speaking of fast ways to do things...

Author: Dann Corbit

Date: 10:49:25 04/19/00


What is the fastest way to fill a linear array of bytes with zero, given the
following conditions:
1.  Intel PII or higher CPU
2.  Guarantee that the number of bytes is an even number?

I am porting a chess program, and memset() is the bottleneck.  I don't need to
memset an arbitrary character.  It's always zero.



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.