- }
-
- // Explicit template instantiations
- template void HalfKAv2_hm::append_active_indices<WHITE>(const Position& pos, IndexList& active);
- template void HalfKAv2_hm::append_active_indices<BLACK>(const Position& pos, IndexList& active);
-
- // append_changed_indices() : get a list of indices for recently changed features
- template<Color Perspective>
- void HalfKAv2_hm::append_changed_indices(
- Square ksq,
- const DirtyPiece& dp,
- IndexList& removed,
- IndexList& added
- ) {
- for (int i = 0; i < dp.dirty_num; ++i) {
- if (dp.from[i] != SQ_NONE)
- removed.push_back(make_index<Perspective>(dp.from[i], dp.piece[i], ksq));
- if (dp.to[i] != SQ_NONE)
- added.push_back(make_index<Perspective>(dp.to[i], dp.piece[i], ksq));
+}
+
+// Explicit template instantiations
+template void HalfKAv2_hm::append_active_indices<WHITE>(const Position& pos, IndexList& active);
+template void HalfKAv2_hm::append_active_indices<BLACK>(const Position& pos, IndexList& active);
+
+// Get a list of indices for recently changed features
+template<Color Perspective>
+void HalfKAv2_hm::append_changed_indices(Square ksq,
+ const DirtyPiece& dp,
+ IndexList& removed,
+ IndexList& added) {
+ for (int i = 0; i < dp.dirty_num; ++i)
+ {
+ if (dp.from[i] != SQ_NONE)
+ removed.push_back(make_index<Perspective>(dp.from[i], dp.piece[i], ksq));
+ if (dp.to[i] != SQ_NONE)
+ added.push_back(make_index<Perspective>(dp.to[i], dp.piece[i], ksq));