1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00
BadFish/src
Marco Costalba 200fc56e9c Fix 'generation' type to uint8_t
When we store this value in TT we cut this to 9 bits,
so we need a smaller variable otherwise comparisons
like:

   replace->generation() == generation

Are always false if generation is bigger then the maximum
TT storable value.

This fixes a very nasty and difficult to spot bug (2 weeks for
regression hunting).

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2010-11-28 17:01:01 +01:00
..
benchmark.cpp Retire Application class 2010-11-22 18:36:18 +01:00
bitbase.cpp Retire bitbase.h 2010-11-07 10:53:19 +01:00
bitboard.cpp Small codestyle touches 2010-10-09 13:05:58 +01:00
bitboard.h Speed up updateShelter() 2010-08-26 18:52:53 +02:00
bitcount.h Rewrite bit counting functions 2010-10-04 18:40:44 +01:00
book.cpp Retire Application class 2010-11-22 18:36:18 +01:00
book.h Object OpeningBook doen't need to be global 2010-11-07 13:12:48 +01:00
color.h Disable templetized operators by default 2010-08-19 13:48:41 +01:00
COPYING Initial import of Glaurung 2.1 2008-09-01 07:59:13 +02:00
depth.h Disable templetized operators by default 2010-08-19 13:48:41 +01:00
direction.cpp Updated copyright year to 2010 2010-03-20 11:27:07 +01:00
direction.h Disable templetized operators by default 2010-08-19 13:48:41 +01:00
endgame.cpp Retire bitbase.h 2010-11-07 10:53:19 +01:00
endgame.h Retire bitbase.h 2010-11-07 10:53:19 +01:00
evaluate.cpp Rewrite options handling in an object oriented fashion 2010-11-05 06:10:05 +01:00
evaluate.h We need just one eval margin in search 2010-09-14 18:06:10 +01:00
history.cpp Inline history and gain getters 2010-07-15 16:55:35 +01:00
history.h Rename OnePly in ONE_PLY 2010-08-19 13:48:20 +01:00
lock.h Use fast SRWLOCK locks under Windows 2010-10-17 11:04:52 +01:00
main.cpp Retire Application class 2010-11-22 18:36:18 +01:00
Makefile Retire Application class 2010-11-22 18:36:18 +01:00
material.cpp We don't need a stringstream in buildKey() 2010-11-23 13:01:11 +01:00
material.h Fixed some warnings when using -Weffc++ gcc option 2010-10-16 15:00:20 +01:00
misc.cpp Debug counters don't need to be global 2010-11-20 11:48:04 +01:00
misc.h Retire Application class 2010-11-22 18:36:18 +01:00
move.cpp Retire piece.cpp 2010-11-22 13:13:48 +01:00
move.h Small codestyle touches 2010-10-09 13:05:58 +01:00
movegen.cpp Rearrange pawn moves generation 2010-11-16 13:43:05 +01:00
movegen.h Another push to perft speed 2010-08-06 12:10:07 +01:00
movepick.cpp Fix 'generation' type to uint8_t 2010-11-28 17:01:01 +01:00
movepick.h Fix 'generation' type to uint8_t 2010-11-28 17:01:01 +01:00
pawns.cpp Retire Application class 2010-11-22 18:36:18 +01:00
pawns.h Fixed some warnings when using -Weffc++ gcc option 2010-10-16 15:00:20 +01:00
piece.h Retire piece.cpp 2010-11-22 13:13:48 +01:00
position.cpp Micro-optimize pl_move_is_legal() 2010-11-21 12:49:16 +01:00
position.h Move PieceValue[] and SlidingArray[] where they belong 2010-11-08 13:18:18 +01:00
psqtab.h Use namespace in position.cpp 2010-11-07 13:51:03 +01:00
rkiss.h Various cleanup in book.cpp 2010-11-08 18:51:42 +01:00
san.cpp Retire piece.cpp 2010-11-22 13:13:48 +01:00
san.h Update nodes after a do_move() 2010-10-31 11:22:40 +01:00
search.cpp Revert sleeping threads 2010-11-27 21:26:00 +01:00
search.h Update nodes after a do_move() 2010-10-31 11:22:40 +01:00
square.h Disable templetized operators by default 2010-08-19 13:48:41 +01:00
thread.h Revert "Allow split point master to sleep (take 2)" 2010-11-27 21:25:59 +01:00
timeman.cpp Rewrite options handling in an object oriented fashion 2010-11-05 06:10:05 +01:00
timeman.h Small codestyle touches 2010-10-09 13:05:58 +01:00
tt.cpp Retire Application class 2010-11-22 18:36:18 +01:00
tt.h Fix 'generation' type to uint8_t 2010-11-28 17:01:01 +01:00
types.h Retire Application class 2010-11-22 18:36:18 +01:00
uci.cpp Retire "New Game" UCI option 2010-11-21 14:25:30 +01:00
ucioption.cpp Revert "Allow split point master to sleep (take 2)" 2010-11-27 21:25:59 +01:00
ucioption.h UCI options names should not be case sensitive 2010-11-21 23:52:51 +01:00
value.h Change evaluate() signature 2010-08-26 13:41:26 +01:00