Barretenberg
The ZK-SNARK library at the core of Aztec
|
Custom class to handle packed vectors of bits. More...
#include <bitvector.hpp>
Public Member Functions | |
BitVector (size_t num_bits) | |
BB_INLINE void | set (size_t index, bool value) noexcept |
BB_INLINE bool | get (size_t index) const noexcept |
void | clear () |
size_t | size () const |
uint64_t * | raw_data () |
const uint64_t * | raw_data () const |
Private Attributes | |
size_t | num_bits_ |
std::vector< uint64_t > | data_ |
Custom class to handle packed vectors of bits.
The cpp std::vector<bool> does not guarantee memory adjacency of values, and has no fast primitive for clearing all bits in the vector. This is to avoid needing to clear all Pippenger buckets every round
Definition at line 15 of file bitvector.hpp.
|
inline |
Definition at line 17 of file bitvector.hpp.
|
inline |
Definition at line 44 of file bitvector.hpp.
|
inlinenoexcept |
Definition at line 36 of file bitvector.hpp.
|
inline |
Definition at line 54 of file bitvector.hpp.
Definition at line 55 of file bitvector.hpp.
Definition at line 22 of file bitvector.hpp.
|
inline |
Definition at line 51 of file bitvector.hpp.
|
private |
Definition at line 59 of file bitvector.hpp.
|
private |
Definition at line 58 of file bitvector.hpp.