Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_ff_gt.hpp
Go to the documentation of this file.
1// AUTOGENERATED FILE
2#pragma once
3
4#include <cstddef>
5#include <string_view>
6#include <tuple>
7
8#include "../columns.hpp"
11
12namespace bb::avm2 {
13
15
17 static constexpr std::string_view NAME = "LOOKUP_FF_GT_A_LO_RANGE";
18 static constexpr std::string_view RELATION_NAME = "ff_gt";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
20 static constexpr Column SRC_SELECTOR = Column::ff_gt_sel;
21 static constexpr Column DST_SELECTOR = Column::range_check_sel;
22 static constexpr Column COUNTS = Column::lookup_ff_gt_a_lo_range_counts;
23 static constexpr Column INVERSES = Column::lookup_ff_gt_a_lo_range_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::ff_gt_a_lo, ColumnAndShifts::ff_gt_constant_128
26 };
27 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
28 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
29 };
30};
31
33template <typename FF_>
35
37
39 static constexpr std::string_view NAME = "LOOKUP_FF_GT_A_HI_RANGE";
40 static constexpr std::string_view RELATION_NAME = "ff_gt";
41 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
42 static constexpr Column SRC_SELECTOR = Column::ff_gt_sel;
43 static constexpr Column DST_SELECTOR = Column::range_check_sel;
44 static constexpr Column COUNTS = Column::lookup_ff_gt_a_hi_range_counts;
45 static constexpr Column INVERSES = Column::lookup_ff_gt_a_hi_range_inv;
46 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
47 ColumnAndShifts::ff_gt_a_hi, ColumnAndShifts::ff_gt_constant_128
48 };
49 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
50 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
51 };
52};
53
55template <typename FF_>
57
58} // namespace bb::avm2
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view NAME