1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
Author: Lukas Geyer <lukas@debian.org>
Description: Made all score variables long int.
Bugs: #192902
--- sjeng-11.2.orig/protos.h
+++ sjeng-11.2/protos.h
@@ -67,7 +67,7 @@
void push_slidE (int target);
-long int qsearch (int alpha, int beta, int depth);
+long int qsearch (long alpha, long beta, int depth);
void rdelay (int time_in_s);
long int rdifftime (rtime_t end, rtime_t start);
bool remove_one (int *marker, long int move_ordering[], int num_moves);
@@ -75,8 +75,8 @@
void check_piece_square (void);
void rinput (char str[], int n, FILE *stream);
rtime_t rtime (void);
-long int search (int alpha, int beta, int depth, int is_null);
-move_s search_root (int alpha, int beta, int depth);
+long int search (long alpha, long beta, int depth, int is_null);
+move_s search_root (long alpha, long beta, int depth);
void start_up (void);
move_s think (void);
void toggle_bool (bool *var);
@@ -111,14 +111,14 @@
move_s choose_book_move(void);
move_s choose_binary_book_move(void);
-void StoreTT(int score, int alpha, int beta, int best , int threat, int depth);
-void QStoreTT(int score, int alpha, int beta, int best);
-int ProbeTT(int *score, int alpha, int beta, int *best, int *threat, int *donull, int depth);
-int QProbeTT(int *score, int alpha, int beta, int *best);
-void LearnStoreTT(int score, unsigned nhash, unsigned hhash, int tomove, int best, int depth);
+void StoreTT(long score, long alpha, long beta, int best , int threat, int depth);
+void QStoreTT(long score, long alpha, long beta, int best);
+int ProbeTT(long *score, long alpha, long beta, int *best, int *threat, int *donull, int depth);
+int QProbeTT(long *score, long alpha, long beta, int *best);
+void LearnStoreTT(long score, unsigned nhash, unsigned hhash, int tomove, int best, int depth);
void LoadLearn(void);
-void Learn(int score, int best, int depth);
+void Learn(long score, int best, int depth);
void pinput (int n, FILE *stream);
@@ -170,5 +170,9 @@
void gen_all_tables(void);
int egtb(int s);
+int load_2piece(void);
+int load_3piece(int w1_man, int b1_man, int b2_man, signed char *t);
+int init_segtb(void);
+
#endif
|