Init threat offsets at compile time

Init threat offsets at compile time. Avoid another global init function call.

Passed STC Non-Regression:
https://tests.stockfishchess.org/tests/view/694971a83c8768ca4507275c
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 43296 W: 11284 L: 11077 D: 20935
Ptnml(0-2): 152, 4611, 11924, 4800, 161

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

No functional change
This commit is contained in:
Disservin
2025-12-23 21:42:45 +01:00
parent 4d4c6ebd02
commit 73b3b18595
6 changed files with 293 additions and 173 deletions
+1
View File
@@ -35,6 +35,7 @@
#include <type_traits>
#include <utility>
#include <vector>
#include <array>
#include "../bitboard.h"
#include "../misc.h"