1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00
BadFish/src
syzygy1 72dc7a5c54 Assume network file is in little-endian byte order
This patch fixes the byte order when reading 16- and 32-bit values from the network file on a big-endian machine.

Bytes are ordered in read_le() using unsigned arithmetic, which doesn't need tricks to determine the endianness of the machine. Unfortunately the compiler doesn't seem to be able to optimise the ordering operation, but reading in the weights is not a time-critical operation and the extra time it takes should not be noticeable.

Big endian systems are still untested with NNUE.

fixes #3007

closes https://github.com/official-stockfish/Stockfish/pull/3009

No functional change.
2020-08-16 21:10:26 +02:00
..
nnue Assume network file is in little-endian byte order 2020-08-16 21:10:26 +02:00
syzygy Add NNUE evaluation 2020-08-06 16:37:45 +02:00
benchmark.cpp This commit enables a mixed bench, to improve CI and allow for PGO (profile-build) of the NNUE part of the code. 2020-08-11 08:17:03 +02:00
bitbase.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
bitboard.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
bitboard.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
endgame.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
endgame.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
evaluate.cpp Use NNUE more for fortresses 2020-08-16 08:20:32 +02:00
evaluate.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
main.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
Makefile Verify SHA of downloaded net file 2020-08-14 16:20:42 +02:00
material.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
material.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
misc.cpp Display NEON in compiler string 2020-08-16 21:10:26 +02:00
misc.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
movegen.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
movegen.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
movepick.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
movepick.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
pawns.cpp Tuned pawn values 2020-08-07 08:57:37 +02:00
pawns.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
position.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
position.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
psqt.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
search.cpp Tweak castling extension 2020-08-11 13:46:02 +02:00
search.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
thread.cpp Fix a data race for NNUE 2020-08-09 23:51:07 +02:00
thread.h Fix a data race for NNUE 2020-08-09 23:51:07 +02:00
thread_win32_osx.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
timeman.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
timeman.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
tt.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
tt.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
tune.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
tune.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
types.h Tuned pawn values 2020-08-07 08:57:37 +02:00
uci.cpp Add NNUE evaluation 2020-08-06 16:37:45 +02:00
uci.h Add NNUE evaluation 2020-08-06 16:37:45 +02:00
ucioption.cpp Verify SHA of downloaded net file 2020-08-14 16:20:42 +02:00