Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
memory_types.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
#include "
barretenberg/vm2/common/tagged_value.hpp
"
6
7
namespace
bb::avm2
{
8
9
using
MemoryTag
=
ValueTag
;
10
using
MemoryValue
=
TaggedValue
;
11
using
MemoryAddress
= uint32_t;
12
constexpr
auto
MemoryAddressTag
=
MemoryTag::U32
;
13
// Related constants are AVM_HIGHEST_MEM_ADDRESS and AVM_MEMORY_NUM_BITS, i.e.,
14
// should we change the alias MemoryAddress to another type (e.g., uint64_t)
15
// then these two constants need to be adjusted.
16
17
}
// namespace bb::avm2
bb::avm2::TaggedValue
Definition
tagged_value.hpp:70
bb::avm2
Definition
flavor.hpp:472
bb::avm2::ValueTag
ValueTag
Definition
tagged_value.hpp:36
bb::avm2::ValueTag::U32
@ U32
bb::avm2::MemoryAddress
uint32_t MemoryAddress
Definition
memory_types.hpp:11
bb::avm2::MemoryAddressTag
constexpr auto MemoryAddressTag
Definition
memory_types.hpp:12
tagged_value.hpp
src
barretenberg
vm2
common
memory_types.hpp
Generated by
1.9.8