Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
to_radix.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <cstddef>
5#include <cstdint>
6#include <vector>
7
8namespace bb::avm2 {
9
10// Radix goes from 0 to 256 (inclusive); entries at indices 0 and 1 are unused.
11constexpr size_t NUM_RADIXES = 257;
12
14size_t get_p_limbs_per_radix_size(size_t radix);
15
16} // namespace bb::avm2
size_t get_p_limbs_per_radix_size(size_t radix)
Gets the number of limbs that the modulus, p, decomposes into for a given radix.
Definition to_radix.cpp:75
const std::array< std::vector< uint8_t >, NUM_RADIXES > & get_p_limbs_per_radix()
Gets the p limbs per radix array. Each element is a vector containing the little endian decomposition...
Definition to_radix.cpp:60
constexpr size_t NUM_RADIXES
Definition to_radix.hpp:11
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13