| 341 | |
| 342 | |
| 343 | auto TransTableS::reset_memory( |
| 344 | [[maybe_unused]] const ResetReason reason) -> void |
| 345 | { |
| 346 | wipe(); |
| 347 | |
| 348 | init_tt(); |
| 349 | |
| 350 | for (int k = 1; k <= 13; k++) |
| 351 | { |
| 352 | for (int h = 0; h < DDS_HANDS; h++) |
| 353 | { |
| 354 | rootnp_[k][h] = &(pos_search_[k][h][0]); |
| 355 | pos_search_[k][h][0].suit_lengths_ = 0; |
| 356 | pos_search_[k][h][0].pos_search_point_ = nullptr; |
| 357 | pos_search_[k][h][0].left_ = nullptr; |
| 358 | pos_search_[k][h][0].right_ = nullptr; |
| 359 | |
| 360 | len_set_ind_[k][h] = 1; |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | #if defined(DDS_TT_STATS) |
| 365 | stats_resets_.no_of_resets_++; |
| 366 | stats_resets_.aggr_resets_[static_cast<int>(reason)]++; |
| 367 | #endif |
| 368 | |
| 369 | } |
| 370 | |
| 371 | auto TransTableS::return_all_memory() -> void |
| 372 | { |
no outgoing calls
no test coverage detected