Computer Chess Club Archives


Search

Terms

Messages

Subject: oups - better type names

Author: Gerd Isenberg

Date: 10:03:45 07/17/03

Go up one level in this thread


typedef int int64Arr[64];
typedef int64Arr int8x64Arr[8];

void arrtest()
{
	int i,j;
	int8x64Arr a;	//	same as int64Arr a[8] or int a[8][64]
	for (j=0; j < 8; j++)
		for (i=0; i < 64; i++)
			a[j][i] = j*i;

	int8x64Arr &b = a;
	for (j=0; j < 8; j++)
		for (i=0; i < 64; i++)
			if ( b[j][i] != j*i)
				__asm int 3;
}



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.