Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookup_into_indexed_by_clk.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cassert>
4
7
8namespace bb::avm2::tracegen {
9
18template <typename LookupSettings> class LookupIntoIndexedByClk : public IndexedLookupTraceBuilder<LookupSettings> {
19 protected:
21 // This is an efficient implementation of indexing into the precomputed table.
22 uint32_t find_in_dst(const TupleType& tup) const override { return static_cast<uint32_t>(flat_tuple::get<0>(tup)); }
23};
24
25} // namespace bb::avm2::tracegen
RefTuple< LookupSettings::LOOKUP_TUPLE_SIZE > TupleType
uint32_t find_in_dst(const TupleType &tup) const override
typename IndexedLookupTraceBuilder< LookupSettings >::TupleType TupleType
TUPLET_INLINE constexpr decltype(auto) get(Tup &&tup)
Definition tuplet.hpp:1021