| 120 | } // namespace |
| 121 | |
| 122 | void DefLevelsToBitmap(const int16_t* def_levels, int64_t num_def_levels, |
| 123 | LevelInfo level_info, ValidityBitmapInputOutput* output) { |
| 124 | // It is simpler to rely on rep_level here until PARQUET-1899 is done and the code |
| 125 | // is deleted in a follow-up release. |
| 126 | if (level_info.rep_level > 0) { |
| 127 | #if defined(ARROW_HAVE_RUNTIME_BMI2) |
| 128 | if (CpuInfo::GetInstance()->HasEfficientBmi2()) { |
| 129 | return DefLevelsToBitmapBmi2WithRepeatedParent(def_levels, num_def_levels, |
| 130 | level_info, output); |
| 131 | } |
| 132 | #endif |
| 133 | standard::DefLevelsToBitmapSimd</*has_repeated_parent=*/true>( |
| 134 | def_levels, num_def_levels, level_info, output); |
| 135 | } else { |
| 136 | standard::DefLevelsToBitmapSimd</*has_repeated_parent=*/false>( |
| 137 | def_levels, num_def_levels, level_info, output); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | uint64_t TestOnlyExtractBitsSoftware(uint64_t bitmap, uint64_t select_bitmap) { |
| 142 | return standard::ExtractBitsSoftware(bitmap, select_bitmap); |