MCPcopy Create free account
hub / github.com/apache/arrow / HashFixed

Method HashFixed

cpp/src/arrow/compute/key_hash_internal.cc:358–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358void Hashing32::HashFixed(int64_t hardware_flags, bool combine_hashes, uint32_t num_keys,
359 uint64_t key_length, const uint8_t* keys, uint32_t* hashes,
360 uint32_t* temp_hashes_for_combine) {
361 if (std::popcount(key_length) == 1 && key_length <= sizeof(uint64_t)) {
362 HashInt(combine_hashes, num_keys, key_length, keys, hashes);
363 return;
364 }
365
366 uint32_t num_processed = 0;
367#if defined(ARROW_HAVE_RUNTIME_AVX2)
368 if (hardware_flags & arrow::internal::CpuInfo::AVX2) {
369 num_processed = HashFixedLen_avx2(combine_hashes, num_keys, key_length, keys, hashes,
370 temp_hashes_for_combine);
371 }
372#endif
373 if (combine_hashes) {
374 HashFixedLenImp<true>(num_keys - num_processed, key_length,
375 keys + key_length * num_processed, hashes + num_processed);
376 } else {
377 HashFixedLenImp<false>(num_keys - num_processed, key_length,
378 keys + key_length * num_processed, hashes + num_processed);
379 }
380}
381
382void Hashing32::HashMultiColumn(const std::vector<KeyColumnArray>& cols,
383 LightContext* ctx, uint32_t* hashes) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected