1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00
BadFish/src
Marco Costalba a87ea9846d Use bsfq asm instruction to count bits
On 64 bit systems we can use bsfq instruction to count
set bits in a bitboard.

This is a patch for GCC and Intel compilers to take advantage
of that and get a 2% speed up.

Original patch from Heinz van Saanen, adapted to current tree
by me.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2009-07-03 10:18:14 +02:00
..
application.cpp Update copyright year 2009-05-07 14:54:40 +02:00
application.h Update copyright year 2009-05-07 14:54:40 +02:00
benchmark.cpp Only on Windows do wait for input at the end of benchmark 2009-06-20 09:04:20 +01:00
benchmark.h Update copyright year 2009-05-07 14:54:40 +02:00
bitbase.cpp Update copyright year 2009-05-07 14:54:40 +02:00
bitbase.h Update copyright year 2009-05-07 14:54:40 +02:00
bitboard.cpp Use bsfq asm instruction to count bits 2009-07-03 10:18:14 +02:00
bitboard.h Use bsfq asm instruction to count bits 2009-07-03 10:18:14 +02:00
bitcount.h Revert _BitScanForward64 support 2009-05-25 07:28:55 +01:00
book.cpp Update copyright year 2009-05-07 14:54:40 +02:00
book.h Update copyright year 2009-05-07 14:54:40 +02:00
color.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
COPYING Initial import of Glaurung 2.1 2008-09-01 07:59:13 +02:00
depth.h Directly relate HistoryMax to OnePly 2009-05-20 14:43:17 +02:00
direction.cpp Space inflate and cleanup direction.cpp 2009-05-20 12:02:39 +02:00
direction.h Update copyright year 2009-05-07 14:54:40 +02:00
endgame.cpp Use compiler name lookup to simplify code 2009-05-24 10:18:31 +01:00
endgame.h Small code style in headers 2009-05-20 15:11:41 +02:00
evaluate.cpp Use POPCNT in evaluate_space() when available 2009-06-20 14:45:11 +01:00
evaluate.h Small code style in headers 2009-05-20 15:11:41 +02:00
history.cpp Reduce history 4 times instead of 2 when reach the maximum 2009-05-20 09:03:15 +02:00
history.h Directly relate HistoryMax to OnePly 2009-05-20 14:43:17 +02:00
lock.h Small code style in headers 2009-05-20 15:11:41 +02:00
main.cpp Give proper credit to Joona 2009-06-18 07:35:23 +01:00
Makefile Fix some Intel compilers warnings 2009-05-09 12:09:25 +02:00
material.cpp Bugfix: KRK was not classified as KNOWN_WIN 2009-06-18 07:35:24 +01:00
material.h Fix a couple of warnings under Intel compiler 2009-06-20 14:45:03 +01:00
mersenne.cpp Warnings termination fest 2008-09-24 00:32:53 +02:00
mersenne.h Update copyright year 2009-05-07 14:54:40 +02:00
misc.cpp Print info about use of 64bit functions and hardware POPCNT 2009-05-23 16:12:26 +01:00
misc.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
move.cpp Micro optimize and rename move_promotion() 2009-06-20 09:04:32 +01:00
move.h Micro optimize and rename move_promotion() 2009-06-20 09:04:32 +01:00
movegen.cpp Micro optimize and rename move_promotion() 2009-06-20 09:04:32 +01:00
movegen.h Update copyright year 2009-05-07 14:54:40 +02:00
movepick.cpp Explicitly use delta psqt values when possible 2009-06-28 06:30:13 +02:00
movepick.h MovePicker doesn't need to know if called from a pv node 2009-06-12 13:10:02 +02:00
pawns.cpp Joona tweaks of pawns parameters 2009-06-26 10:17:47 +02:00
pawns.h Fix a couple of warnings under Intel compiler 2009-06-20 14:45:03 +01:00
piece.cpp Update copyright year 2009-05-07 14:54:40 +02:00
piece.h Update copyright year 2009-05-07 14:54:40 +02:00
position.cpp Explicitly use delta psqt values when possible 2009-06-28 06:30:13 +02:00
position.h Explicitly use delta psqt values when possible 2009-06-28 06:30:13 +02:00
psqtab.h Joona tweaks of piece values 2009-07-02 06:29:14 +01:00
san.cpp Micro optimize and rename move_promotion() 2009-06-20 09:04:32 +01:00
san.h Update copyright year 2009-05-07 14:54:40 +02:00
scale.h Update copyright year 2009-05-07 14:54:40 +02:00
search.cpp Revert per-thread history tables 2009-07-02 06:29:25 +01:00
search.h Remove global variables from search.h 2009-06-12 13:10:40 +02:00
square.h Update copyright year 2009-05-07 14:54:40 +02:00
thread.h Revert per-thread history tables 2009-07-02 06:29:25 +01:00
tt.cpp Update copyright year 2009-05-07 14:54:40 +02:00
tt.h Reduce SMP contention on TT 2009-06-13 11:13:09 +01:00
types.h Update copyright year 2009-05-07 14:54:40 +02:00
uci.cpp Give proper credit to Joona 2009-06-18 07:35:23 +01:00
uci.h Update copyright year 2009-05-07 14:54:40 +02:00
ucioption.cpp Retire UseQSearchFutilityPruning and UseFutilityPruning 2009-06-03 17:35:56 +01:00
ucioption.h Use string instead of std::string 2009-05-10 18:38:47 +01:00
value.cpp Update copyright year 2009-05-07 14:54:40 +02:00
value.h Joona tweaks of piece values 2009-07-02 06:29:14 +01:00