Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fixed_base.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::plookup
 
namespace  bb::plookup::fixed_base
 

Typedefs

using bb::plookup::fixed_base::function_ptr = std::array< bb::fr, 2 >(*)(const std::array< uint64_t, 2 >)
 
using bb::plookup::fixed_base::function_ptr_table = std::array< std::array< function_ptr, table::MAX_NUM_TABLES_IN_MULTITABLE >, table::NUM_FIXED_BASE_MULTI_TABLES >
 

Functions

constexpr function_ptr_table bb::plookup::fixed_base::make_function_pointer_table ()
 create a compile-time static 2D array of all our required get_basic_fixed_base_table_values function pointers, so that we can specify the function pointer required for this method call using runtime variables multitable_index, table_index. (downstream code becomes a lot simpler if table_index is not compile time, particularly the init code in plookup_tables.cpp)
 
template grumpkin::g1::affine_element bb::plookup::fixed_base::table::compute_generator_offset< table::BITS_PER_LO_SCALAR > (const grumpkin::g1::affine_element &input)
 
template grumpkin::g1::affine_element bb::plookup::fixed_base::table::compute_generator_offset< table::BITS_PER_HI_SCALAR > (const grumpkin::g1::affine_element &input)
 
template table::fixed_base_scalar_mul_tables bb::plookup::fixed_base::table::generate_tables< table::BITS_PER_LO_SCALAR > (const table::affine_element &input)
 
template table::fixed_base_scalar_mul_tables bb::plookup::fixed_base::table::generate_tables< table::BITS_PER_HI_SCALAR > (const table::affine_element &input)
 
template MultiTable bb::plookup::fixed_base::table::get_fixed_base_table< 0, table::BITS_PER_LO_SCALAR > (MultiTableId)
 
template MultiTable bb::plookup::fixed_base::table::get_fixed_base_table< 1, table::BITS_PER_HI_SCALAR > (MultiTableId)
 
template MultiTable bb::plookup::fixed_base::table::get_fixed_base_table< 2, table::BITS_PER_LO_SCALAR > (MultiTableId)
 
template MultiTable bb::plookup::fixed_base::table::get_fixed_base_table< 3, table::BITS_PER_HI_SCALAR > (MultiTableId)