Warnings:
thread.c(455): warning C4028: formal parameter 1 different from declaration
Code: Select all
int ThreadSplit(TREE * tree, int ply, int depth, int alpha, int o_alpha, int done)
Code: Select all
TREE *GetBlock(TREE * RESTRICT parent, int tid) {
book.c(1438): error C2440: 'function': cannot convert from 'int (__fastcall *)(const void *,const void *)' to '_CoreCrtNonSecureSearchSortCompareFunction'
book.c(1438): warning C4024: 'qsort': different types for formal and actual parameter 4
Code: Select all
qsort((char *) buffer, number, sizeof(BB_POSITION), BookupCompare);
utility.c(2558): warning C4477: 'printf' : format string '%llu' requires an argument of type 'unsigned __int64', but variadic argument 1 has type 'DWORD'
Code: Select all
printf("Current ideal CPU is %llu\n", dwCPU);
Code: Select all
printf("Current ideal CPU is %lu\n", dwCPU);
Code: Select all
printf("Starting thread on node " PRId64 " CPU mask %I64d\n", ulNumaNode,
Code: Select all
printf("Starting thread on node " PRId64 " CPU mask %ld\n", ulNumaNode,
tbcore.c(11): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
This needs a compatibility fix.
Code: Select all
#include <unistd.h>
option.c(922): error C2708: '__builtin_clzll': actual parameters length in bytes differs from previous call or reference
Code: Select all
hash_table_size = ((1ull) << MSB(new_hash_size)) / 16;
Code: Select all
hash_path_size = ((1ull) << MSB(new_hash_size / sizeof(HPATH_ENTRY)));
Code: Select all
pawn_hash_table_size = 1ull << MSB(new_hash_size / sizeof(PAWN_HASH_ENTRY));
chess.h: lines 324,-326
Code: Select all
#define PopCnt(v) __builtin_popcountll(v)
#define LSB(v) __builtin_ctzll(v)
#define MSB(v) (63 - __builtin_clzll(v))
I think working on MacOs, Linux, GCC only, has lost compile compatibility with Windows.
Please address a fix.
Thanks!