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
5
#include "
barretenberg/vm2/tracegen/lib/lookup_builder.hpp
"
6
7
namespace
bb::avm2::tracegen
{
8
17
template
<
typename
LookupSettings>
class
LookupIntoIndexedByClk
:
public
IndexedLookupTraceBuilder
<LookupSettings> {
18
protected
:
19
// This is an efficient implementation of indexing into the precomputed table.
20
uint32_t
find_in_dst
(
const
std::array<FF, LookupSettings::LOOKUP_TUPLE_SIZE>
& tup)
const override
21
{
22
return
static_cast<
uint32_t
>
(tup[0]);
23
}
24
};
25
26
}
// namespace bb::avm2::tracegen
bb::avm2::tracegen::IndexedLookupTraceBuilder
Definition
lookup_builder.hpp:20
bb::avm2::tracegen::LookupIntoIndexedByClk
Definition
lookup_into_indexed_by_clk.hpp:17
bb::avm2::tracegen::LookupIntoIndexedByClk::find_in_dst
uint32_t find_in_dst(const std::array< FF, LookupSettings::LOOKUP_TUPLE_SIZE > &tup) const override
Definition
lookup_into_indexed_by_clk.hpp:20
lookup_builder.hpp
bb::avm2::tracegen
Definition
full_row.hpp:10
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
src
barretenberg
vm2
tracegen
lib
lookup_into_indexed_by_clk.hpp
Generated by
1.9.8