OmniSciDB  5ade3759e0
anonymous_namespace{GroupByHashTest.cpp} Namespace Reference

Functions

void init_groups (int64_t *groups_buffer, const int32_t groups_buffer_entry_count, const int32_t key_qw_count, const int64_t *init_vals)
 

Function Documentation

◆ init_groups()

void anonymous_namespace{GroupByHashTest.cpp}::init_groups ( int64_t *  groups_buffer,
const int32_t  groups_buffer_entry_count,
const int32_t  key_qw_count,
const int64_t *  init_vals 
)

Definition at line 25 of file GroupByHashTest.cpp.

References EMPTY_KEY_64, and key_qw_count.

Referenced by GroupsBuffer::GroupsBuffer().

28  {
29  int32_t groups_buffer_entry_qw_count = groups_buffer_entry_count * (key_qw_count + 1);
30  for (int32_t i = 0; i < groups_buffer_entry_qw_count; ++i) {
31  groups_buffer[i] = (i % (key_qw_count + 1) < key_qw_count)
32  ? EMPTY_KEY_64
33  : init_vals[(i - key_qw_count) % (key_qw_count + 1)];
34  }
35 }
#define EMPTY_KEY_64
const int64_t const uint32_t groups_buffer_entry_count
const int64_t const uint32_t const uint32_t key_qw_count
const int64_t * init_vals
+ Here is the caller graph for this function: