1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-12 03:59:15 +00:00
BadFish/src
Stéphane Nicolet ea41f18e6e Swap mg and eg in internal representation of Score
Instrumentation shows that in make_score(mg, eg) calls, the mg value is
zero in 25,9% of the calls while the eg value is zero in 36,8% of the
calls.

Swapping the internal fields of mg and eg in the internal
representation of Score allows the compiler to optimize away the shift
in (eg << 16) + mg in more cases, thus resulting in a 0.3% speed-up
overall.

No functional change
2016-09-17 09:56:36 +02:00
..
syzygy Change from [Color][PieceType] to [Piece] 2016-09-04 09:22:09 +02:00
benchmark.cpp Fix incorrect draw detection 2016-04-18 00:13:16 +02:00
bitbase.cpp Update AUTHORS and copyright notice 2016-01-02 09:43:51 +00:00
bitboard.cpp Hide global visibility when not needed 2016-04-09 10:42:04 +02:00
bitboard.h Retire __popcnt64 intrinsic 2016-05-05 09:09:07 +02:00
endgame.cpp StateInfo is usually allocated on the stack by search() 2016-04-17 08:29:33 +02:00
endgame.h Update AUTHORS and copyright notice 2016-01-02 09:43:51 +00:00
evaluate.cpp Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
evaluate.h Retire KingDanger array 2016-09-16 08:30:06 +02:00
main.cpp Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
Makefile Remove useless -mbmi flag in Makefile 2016-05-01 14:11:28 +02:00
material.cpp Retire linear imbalance 2016-09-02 08:25:17 +02:00
material.h Avoid some redundant scaling function calls 2016-06-10 06:43:37 +02:00
misc.cpp Do not hardcode Debug Log File 2016-06-15 08:47:08 +02:00
misc.h Do not hardcode Debug Log File 2016-06-15 08:47:08 +02:00
movegen.cpp Retire CheckInfo 2016-08-28 08:08:13 +02:00
movegen.h Update AUTHORS and copyright notice 2016-01-02 09:43:51 +00:00
movepick.cpp Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
movepick.h Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
pawns.cpp Space bonus in presence of open files 2016-09-03 00:04:20 +02:00
pawns.h Space bonus in presence of open files 2016-09-03 00:04:20 +02:00
position.cpp Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
position.h Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
psqt.cpp Change from [Color][PieceType] to [Piece] 2016-09-04 09:22:09 +02:00
search.cpp Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
search.h Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
thread.cpp Filter root moves filter before copy to threads 2016-06-11 09:24:40 +02:00
thread.h Fix indentation in struct FromToStats 2016-09-17 09:51:20 +02:00
thread_win32.h Assorted English grammar changes 2016-01-16 21:34:29 +00:00
timeman.cpp StateInfo is usually allocated on the stack by search() 2016-04-17 08:29:33 +02:00
timeman.h Time management simplification 2016-01-29 00:47:07 +00:00
tt.cpp Make engine ONE_PLY value independent 2016-08-27 09:12:25 +02:00
tt.h Silence some warnings with MSVC 2013 2016-08-27 12:16:13 +02:00
types.h Swap mg and eg in internal representation of Score 2016-09-17 09:56:36 +02:00
uci.cpp Move CheckInfo under StateInfo 2016-08-27 09:53:26 +02:00
uci.h Update AUTHORS and copyright notice 2016-01-02 09:43:51 +00:00
ucioption.cpp Do not hardcode Debug Log File 2016-06-15 08:47:08 +02:00