|
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 23 of file bitvector.hpp.
|
inline |
Definition at line 25 of file bitvector.hpp.
|
inline |
Definition at line 52 of file bitvector.hpp.
|
inlinenoexcept |
Definition at line 44 of file bitvector.hpp.
|
inline |
Definition at line 62 of file bitvector.hpp.
Definition at line 63 of file bitvector.hpp.
Definition at line 30 of file bitvector.hpp.
|
inline |
Definition at line 59 of file bitvector.hpp.
|
private |
Definition at line 67 of file bitvector.hpp.
|
private |
Definition at line 66 of file bitvector.hpp.