See header for documentation. */
| 474 | |
| 475 | /* See header for documentation. */ |
| 476 | void init_partition_tables( |
| 477 | block_size_descriptor& bsd, |
| 478 | bool can_omit_partitionings, |
| 479 | unsigned int partition_count_cutoff |
| 480 | ) { |
| 481 | partition_info* par_tab2 = bsd.partitionings; |
| 482 | partition_info* par_tab3 = par_tab2 + BLOCK_MAX_PARTITIONINGS; |
| 483 | partition_info* par_tab4 = par_tab3 + BLOCK_MAX_PARTITIONINGS; |
| 484 | partition_info* par_tab1 = par_tab4 + BLOCK_MAX_PARTITIONINGS; |
| 485 | |
| 486 | generate_one_partition_info_entry(bsd, 1, 0, 0, *par_tab1); |
| 487 | bsd.partitioning_count_selected[0] = 1; |
| 488 | bsd.partitioning_count_all[0] = 1; |
| 489 | |
| 490 | uint64_t* canonical_patterns = new uint64_t[BLOCK_MAX_PARTITIONINGS * BIT_PATTERN_WORDS]; |
| 491 | |
| 492 | build_partition_table_for_one_partition_count(bsd, can_omit_partitionings, partition_count_cutoff, 2, par_tab2, canonical_patterns); |
| 493 | build_partition_table_for_one_partition_count(bsd, can_omit_partitionings, partition_count_cutoff, 3, par_tab3, canonical_patterns); |
| 494 | build_partition_table_for_one_partition_count(bsd, can_omit_partitionings, partition_count_cutoff, 4, par_tab4, canonical_patterns); |
| 495 | |
| 496 | delete[] canonical_patterns; |
| 497 | } |
no test coverage detected