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

Function GetUIntSequence

cpp/src/arrow/util/int_util_benchmark.cc:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32constexpr auto kSeed = 0x94378165;
33
34std::vector<uint64_t> GetUIntSequence(int n_values, uint64_t addend = 0) {
35 std::vector<uint64_t> values(n_values);
36 for (int i = 0; i < n_values; ++i) {
37 values[i] = static_cast<uint64_t>(i) + addend;
38 }
39 return values;
40}
41
42std::vector<int64_t> GetIntSequence(int n_values, uint64_t addend = 0) {
43 std::vector<int64_t> values(n_values);

Callers 2

DetectUIntWidthNoNullsFunction · 0.85
DetectUIntWidthNullsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected