Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: optimizing loops question - oups i++ of course

Author: Gerd Isenberg

Date: 09:27:01 07/20/03

Go up one level in this thread


oups, i++ of course since i should be n-1 after ;-)

switch (n-i) // sample for 0 >= n-i >= 7
{
case 7:  f(i++);
case 6:  f(i++);
case 5:  f(i++);
case 4:  f(i++);
case 3:  f(i++);
case 2:	 f(i++);
case 1:  f(i);
case 0:  break;
default: assume (0); // msc specific
}

Gerd




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.