Changeset 208
- Timestamp:
- 12/12/06 21:56:43 (1 year ago)
- Files:
-
- 06/libkombilo/search.cc (modified) (6 diffs)
- 06/libkombilo/search.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/libkombilo/search.cc
r207 r208 498 498 // printf("%d, %d, %d, %d, %d, %d, %d\n", f, newSizeX, newSizeY, newLeft, newRight, newTop, newBottom); 499 499 char* newInitialPos = new char[pattern.sizeX*pattern.sizeY]; 500 for(int i=0; i<pattern.sizeX; i++) { 500 unsigned i=0; 501 for(i=0; i<pattern.sizeX; i++) { 501 502 for(int j=0; j<pattern.sizeY; j++) { 502 503 newInitialPos[Pattern::flipsX(f,i,j,pattern.sizeX-1,pattern.sizeY-1) + \ … … 506 507 507 508 vector<MoveNC> newContList; 508 for( unsigned inti=0; i<pattern.contList.size(); i++) {509 for(i=0; i<pattern.contList.size(); i++) { 509 510 newContList.push_back(MoveNC(Pattern::flipsX(f, pattern.contList[i].x, pattern.contList[i].y, 510 511 pattern.sizeX-1,pattern.sizeY-1), … … 1722 1723 } 1723 1724 1724 #if def __BORLANDC__1725 #if (defined(__BORLANDC__) || defined(_MSC_VER)) 1725 1726 const hashtype Algo_hash::hashCodes[] = { 1726 1727 1448047776469843i64 , 23745670021858756i64 , 2503503679898819i64 , … … 2430 2431 if (argc==3 && argv[0] && argv[1] && argv[2]) { 2431 2432 // printf("found %s, %lld", argv[2], atoi(argv[2])); 2432 #if def __BORLANDC__2433 #if (defined(__BORLANDC__) || defined(_MSC_VER)) 2433 2434 ((vector<HashhitCS* >*)results)->push_back(new HashhitCS(atoi(argv[0]), atoi(argv[1]), _atoi64(argv[2])!=hashCode)); 2434 2435 #else … … 3188 3189 nextMove = NEXTMOVE; 3189 3190 trustHashFull = false; 3191 searchInVariations = true; 3192 algos = (1<<30) - 1; // use all available algorithms 3190 3193 } 3191 3194 … … 4406 4409 } 4407 4410 4408 for(int a=20*algo_offset; a < 20*(algo_offset+1); a++) 4409 if (algo_ps[a]) algo_ps[a]->endOfNode_process(); 4411 { 4412 for(int a=20*algo_offset; a < 20*(algo_offset+1); a++) 4413 if (algo_ps[a]) algo_ps[a]->endOfNode_process(); 4414 } 4410 4415 4411 4416 if (processVariations && currentN->numChildren > 1) { // several variations start from this node; 06/libkombilo/search.h
r204 r208 33 33 typedef char* char_p; 34 34 35 #if def __BORLANDC__35 #if (defined(__BORLANDC__) || defined(_MSC_VER)) 36 36 typedef __int64 hashtype; 37 37 const hashtype NOT_HASHABLE = 9223372036854775807i64;
