|
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 21 of file bitvector.hpp.
|
inline |
Definition at line 23 of file bitvector.hpp.
|
inline |
Definition at line 50 of file bitvector.hpp.
|
inlinenoexcept |
Definition at line 42 of file bitvector.hpp.
|
inline |
Definition at line 60 of file bitvector.hpp.
Definition at line 61 of file bitvector.hpp.
Definition at line 28 of file bitvector.hpp.
|
inline |
Definition at line 57 of file bitvector.hpp.
|
private |
Definition at line 65 of file bitvector.hpp.
|
private |
Definition at line 64 of file bitvector.hpp.