mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
rose_build: reduce size/scope of context objects
This commit is contained in:
@@ -155,9 +155,9 @@ void bfs(vector<mmbit_sparse_iter> &out, const TreeNode &tree) {
|
||||
|
||||
/** \brief Construct a sparse iterator over the values in \a bits for a
|
||||
* multibit of size \a total_bits. */
|
||||
void mmbBuildSparseIterator(vector<mmbit_sparse_iter> &out,
|
||||
const vector<u32> &bits, u32 total_bits) {
|
||||
assert(out.empty());
|
||||
vector<mmbit_sparse_iter> mmbBuildSparseIterator(const vector<u32> &bits,
|
||||
u32 total_bits) {
|
||||
vector<mmbit_sparse_iter> out;
|
||||
assert(!bits.empty());
|
||||
assert(total_bits > 0);
|
||||
assert(total_bits <= MMB_MAX_BITS);
|
||||
@@ -186,6 +186,7 @@ void mmbBuildSparseIterator(vector<mmbit_sparse_iter> &out,
|
||||
#endif
|
||||
|
||||
DEBUG_PRINTF("iter has %zu records\n", out.size());
|
||||
return out;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
* Copyright (c) 2015-2017, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -61,8 +61,8 @@ u32 mmbit_size(u32 total_bits);
|
||||
|
||||
/** \brief Construct a sparse iterator over the values in \a bits for a
|
||||
* multibit of size \a total_bits. */
|
||||
void mmbBuildSparseIterator(std::vector<mmbit_sparse_iter> &out,
|
||||
const std::vector<u32> &bits, u32 total_bits);
|
||||
std::vector<mmbit_sparse_iter>
|
||||
mmbBuildSparseIterator(const std::vector<u32> &bits, u32 total_bits);
|
||||
|
||||
struct scatter_plan_raw;
|
||||
|
||||
|
Reference in New Issue
Block a user