Rev 108 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 108 | Rev 154 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | #if !defined(DATA_INCLUDED) |
- | |
2 |
|
1 | #pragma once |
3 | extern int scale; |
2 | extern int scale; |
4 | extern char version[8]; |
3 | extern char version[8]; |
5 | extern int presult; |
4 | extern int presult; |
6 | extern PLAYING_MODE mode; |
5 | extern PLAYING_MODE mode; |
7 | extern int batch_mode; |
6 | extern int batch_mode; |
Line 14... | Line 13... | ||
14 | extern uint64_t total_moves; |
13 | extern uint64_t total_moves; |
15 | extern int allow_cores; |
14 | extern int allow_cores; |
16 | extern int allow_memory; |
15 | extern int allow_memory; |
17 | extern int initialized; |
16 | extern int initialized; |
18 | extern int early_exit; |
17 | extern int early_exit; |
19 | extern int new_game; |
- | |
20 | extern char *AK_list[128]; |
18 | extern char *AK_list[128]; |
21 | extern char *GM_list[128]; |
19 | extern char *GM_list[128]; |
22 | extern char *IM_list[128]; |
20 | extern char *IM_list[128]; |
23 | extern char *B_list[128]; |
21 | extern char *B_list[128]; |
24 | extern char *SP_list[128]; |
22 | extern char *SP_list[128]; |
Line 31... | Line 29... | ||
31 | extern FILE *computer_bs_file; |
29 | extern FILE *computer_bs_file; |
32 | extern FILE *history_file; |
30 | extern FILE *history_file; |
33 | extern FILE *log_file; |
31 | extern FILE *log_file; |
34 | extern int log_id; |
32 | extern int log_id; |
35 | extern int output_format; |
33 | extern int output_format; |
36 |
|
34 | #if defined(SYZYGY) |
37 | extern int EGTBlimit; |
35 | extern int EGTBlimit; |
38 | extern int EGTB_use; |
36 | extern int EGTB_use; |
39 | extern int EGTB_draw; |
37 | extern int EGTB_draw; |
40 | extern int EGTB_depth; |
38 | extern int EGTB_depth; |
41 | extern void *EGTB_cache; |
- | |
42 | extern size_t EGTB_cache_size; |
- | |
43 | extern int EGTB_setup; |
39 | extern int EGTB_setup; |
44 |
|
40 | #endif |
45 | extern int last_mate_score; |
41 | extern int last_mate_score; |
46 | extern int last_opponent_move; |
42 | extern int last_opponent_move; |
47 | extern int check_depth; |
43 | extern int check_depth; |
48 | extern int null_depth; |
44 | extern int null_depth; |
49 | extern int null_divisor; |
45 | extern int null_divisor; |
Line 94... | Line 90... | ||
94 | extern unsigned char convert_buff[8]; |
90 | extern unsigned char convert_buff[8]; |
95 | extern int nargs; |
91 | extern int nargs; |
96 | extern int kibitz; |
92 | extern int kibitz; |
97 | extern int game_wtm; |
93 | extern int game_wtm; |
98 | extern int last_search_value; |
94 | extern int last_search_value; |
99 | extern int |
95 | extern int FP_margin[16]; |
100 | extern int |
96 | extern int FP_depth; |
101 | extern int |
97 | extern int LMP[16]; |
102 | extern int |
98 | extern int LMP_depth; |
- | 99 | extern int LMP_base; |
|
- | 100 | extern double LMP_scale; |
|
- | 101 | extern double LMP_scale; |
|
103 | extern int failhi_delta, faillo_delta; |
102 | extern int failhi_delta, faillo_delta; |
104 | extern int ponder_value; |
103 | extern int ponder_value; |
105 | extern int move_actually_played; |
104 | extern int move_actually_played; |
106 | extern int analyze_mode; |
105 | extern int analyze_mode; |
107 | extern int annotate_mode; |
106 | extern int annotate_mode; |
Line 161... | Line 160... | ||
161 | extern unsigned opponent_start_time, opponent_end_time; |
160 | extern unsigned opponent_start_time, opponent_end_time; |
162 | extern unsigned program_start_time, program_end_time; |
161 | extern unsigned program_start_time, program_end_time; |
163 | extern unsigned start_time, end_time; |
162 | extern unsigned start_time, end_time; |
164 | extern TREE *block[MAX_BLOCKS + 1]; |
163 | extern TREE *block[MAX_BLOCKS + 1]; |
165 | extern THREAD thread[CPUS]; |
164 | extern THREAD thread[CPUS]; |
166 |
|
165 | #if (CPUS > 1) |
167 | extern lock_t lock_smp, lock_io; |
166 | extern lock_t lock_smp, lock_io; |
168 | # |
167 | # if defined(UNIX) |
169 | extern pthread_attr_t attributes; |
168 | extern pthread_attr_t attributes; |
170 | # endif |
- | |
171 | # endif |
169 | # endif |
- | 170 | #endif |
|
- | 171 | extern unsigned int hardware_processors; |
|
172 | extern unsigned int smp_max_threads; |
172 | extern unsigned int smp_max_threads; |
173 | extern unsigned int smp_split_group; |
173 | extern unsigned int smp_split_group; |
174 | extern unsigned int smp_split_at_root; |
174 | extern unsigned int smp_split_at_root; |
175 | extern unsigned int smp_min_split_depth; |
175 | extern unsigned int smp_min_split_depth; |
176 | extern unsigned int smp_gratuitous_depth; |
176 | extern unsigned int smp_gratuitous_depth; |
177 | extern unsigned int smp_gratuitous_limit; |
177 | extern unsigned int smp_gratuitous_limit; |
- | 178 | extern int smp_nice; |
|
178 | extern int smp_affinity; |
179 | extern int smp_affinity; |
- | 180 | extern int smp_affinity_increment; |
|
179 | extern int smp_numa; |
181 | extern int smp_numa; |
180 | extern int autotune_params; |
182 | extern int autotune_params; |
181 | extern struct autotune tune[16]; |
183 | extern struct autotune tune[16]; |
182 | extern unsigned smp_split_nodes; |
184 | extern unsigned smp_split_nodes; |
183 | extern unsigned parallel_splits; |
185 | extern unsigned parallel_splits; |
Line 215... | Line 217... | ||
215 | extern int kibitz_depth; |
217 | extern int kibitz_depth; |
216 | extern int move_number; |
218 | extern int move_number; |
217 | extern int moves_out_of_book; |
219 | extern int moves_out_of_book; |
218 | extern int first_nonbook_factor; |
220 | extern int first_nonbook_factor; |
219 | extern int first_nonbook_span; |
221 | extern int first_nonbook_span; |
220 | extern int smp_nice; |
- | |
221 |
|
222 | #if defined(SKILL) |
222 | extern int skill; |
223 | extern int skill; |
223 |
|
224 | #endif |
224 | extern int book_learn_eval[LEARN_INTERVAL]; |
225 | extern int book_learn_eval[LEARN_INTERVAL]; |
225 | extern int book_learn_depth[LEARN_INTERVAL]; |
226 | extern int book_learn_depth[LEARN_INTERVAL]; |
226 | extern int learn_seekto[64]; |
227 | extern int learn_seekto[64]; |
227 | extern uint64_t learn_key[64]; |
228 | extern uint64_t learn_key[64]; |
228 | extern int learn_nmoves[64]; |
229 | extern int learn_nmoves[64]; |
Line 236... | Line 237... | ||
236 | extern uint64_t hash_mask; |
237 | extern uint64_t hash_mask; |
237 | extern uint64_t mask_clear_entry; |
238 | extern uint64_t mask_clear_entry; |
238 | extern uint64_t hash_path_mask; |
239 | extern uint64_t hash_path_mask; |
239 | extern size_t pawn_hash_table_size; |
240 | extern size_t pawn_hash_table_size; |
240 | extern uint64_t pawn_hash_mask; |
241 | extern uint64_t pawn_hash_mask; |
241 | extern size_t eval_hash_table_size; |
- | |
242 | extern uint64_t eval_hash_mask; |
- | |
243 | extern HASH_ENTRY *hash_table; |
242 | extern HASH_ENTRY *hash_table; |
244 | extern HPATH_ENTRY *hash_path; |
243 | extern HPATH_ENTRY *hash_path; |
245 | extern PAWN_HASH_ENTRY *pawn_hash_table; |
244 | extern PAWN_HASH_ENTRY *pawn_hash_table; |
246 | extern uint64_t *eval_hash_table; |
- | |
247 | extern void *segments[MAX_BLOCKS + 32][2]; |
245 | extern void *segments[MAX_BLOCKS + 32][2]; |
248 | extern int nsegments; |
246 | extern int nsegments; |
249 | extern const int pcval[7]; |
247 | extern const int pcval[7]; |
250 | extern const int p_vals[7]; |
248 | extern const int p_vals[7]; |
251 | extern const int MVV_LVA[7][7]; |
249 | extern const int MVV_LVA[7][7]; |
Line 286... | Line 284... | ||
286 | extern uint64_t bishop_attacks[64]; |
284 | extern uint64_t bishop_attacks[64]; |
287 | extern POSITION display; |
285 | extern POSITION display; |
288 | extern uint64_t king_attacks[64]; |
286 | extern uint64_t king_attacks[64]; |
289 | extern uint64_t intervening[64][64]; |
287 | extern uint64_t intervening[64][64]; |
290 | extern int history[1024]; |
288 | extern int history[1024]; |
291 | extern KILLER counter_move[4096]; |
- | |
292 | extern KILLER move_pair[4096]; |
- | |
293 | extern const uint64_t randoms[2][7][64]; |
289 | extern const uint64_t randoms[2][7][64]; |
294 | extern const uint64_t castle_random[2][2]; |
290 | extern const uint64_t castle_random[2][2]; |
295 | extern const uint64_t enpassant_random[65]; |
291 | extern const uint64_t enpassant_random[65]; |
296 | extern uint64_t clear_mask[65]; |
292 | extern uint64_t clear_mask[65]; |
297 | extern uint64_t set_mask[65]; |
293 | extern uint64_t set_mask[65]; |
Line 316... | Line 312... | ||
316 | extern uint64_t minus1dir[65]; |
312 | extern uint64_t minus1dir[65]; |
317 | extern uint64_t minus7dir[65]; |
313 | extern uint64_t minus7dir[65]; |
318 | extern uint64_t minus8dir[65]; |
314 | extern uint64_t minus8dir[65]; |
319 | extern uint64_t minus9dir[65]; |
315 | extern uint64_t minus9dir[65]; |
320 | extern uint64_t mask_eptest[64]; |
316 | extern uint64_t mask_eptest[64]; |
321 |
|
317 | #if !defined(INLINEASM) |
322 | extern unsigned char msb[65536]; |
318 | extern unsigned char msb[65536]; |
323 | extern unsigned char lsb[65536]; |
319 | extern unsigned char lsb[65536]; |
324 |
|
320 | #endif |
325 | extern unsigned char msb_8bit[256]; |
321 | extern unsigned char msb_8bit[256]; |
326 | extern unsigned char lsb_8bit[256]; |
322 | extern unsigned char lsb_8bit[256]; |
327 | extern unsigned char pop_cnt_8bit[256]; |
323 | extern unsigned char pop_cnt_8bit[256]; |
328 | extern uint64_t mask_pawn_connected[2][64]; |
324 | extern uint64_t mask_pawn_connected[2][64]; |
329 | extern uint64_t mask_pawn_isolated[64]; |
325 | extern uint64_t mask_pawn_isolated[64]; |
Line 364... | Line 360... | ||
364 | extern const int rook_H[2]; |
360 | extern const int rook_H[2]; |
365 | extern const int capleft[2]; |
361 | extern const int capleft[2]; |
366 | extern const int capright[2]; |
362 | extern const int capright[2]; |
367 | extern const int pawnadv1[2]; |
363 | extern const int pawnadv1[2]; |
368 | extern const int pawnadv2[2]; |
364 | extern const int pawnadv2[2]; |
369 | # if !defined(NOEGTB) |
- | |
370 | extern int cbEGTBCompBytes; |
- | |
371 | # endif |
- | |
372 | extern int piece_values[2][7]; |
365 | extern int piece_values[2][7]; |
373 | extern struct personality_term personality_packet[256]; |
366 | extern struct personality_term personality_packet[256]; |
374 | #endif |
- |