Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_bitwise.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_BITWISE_INTEGRAL_TAG_LENGTH";
18 static constexpr std::string_view RELATION_NAME = "bitwise";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
20 static constexpr Column SRC_SELECTOR = Column::bitwise_sel_get_ctr;
21 static constexpr Column DST_SELECTOR = Column::precomputed_sel_tag_parameters;
22 static constexpr Column COUNTS = Column::lookup_bitwise_integral_tag_length_counts;
23 static constexpr Column INVERSES = Column::lookup_bitwise_integral_tag_length_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = { ColumnAndShifts::bitwise_tag_a,
25 ColumnAndShifts::bitwise_ctr };
26 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
27 ColumnAndShifts::precomputed_idx, ColumnAndShifts::precomputed_tag_byte_length
28 };
29};
30
32template <typename FF_>
35
37
39 static constexpr std::string_view NAME = "LOOKUP_BITWISE_BYTE_OPERATIONS";
40 static constexpr std::string_view RELATION_NAME = "bitwise";
41 static constexpr size_t LOOKUP_TUPLE_SIZE = 5;
42 static constexpr Column SRC_SELECTOR = Column::bitwise_sel_compute;
43 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
44 static constexpr Column COUNTS = Column::lookup_bitwise_byte_operations_counts;
45 static constexpr Column INVERSES = Column::lookup_bitwise_byte_operations_inv;
46 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
47 ColumnAndShifts::bitwise_ia_byte,
48 ColumnAndShifts::bitwise_ib_byte,
49 ColumnAndShifts::bitwise_output_and,
50 ColumnAndShifts::bitwise_output_or,
51 ColumnAndShifts::bitwise_output_xor
52 };
53 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
54 ColumnAndShifts::precomputed_bitwise_input_a,
55 ColumnAndShifts::precomputed_bitwise_input_b,
56 ColumnAndShifts::precomputed_bitwise_output_and,
57 ColumnAndShifts::precomputed_bitwise_output_or,
58 ColumnAndShifts::precomputed_bitwise_output_xor
59 };
60};
61
63template <typename FF_>
65
66} // namespace bb::avm2
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::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
Settings to be passed ot GenericLookupRelationImpl.