Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fake_bitwise.cpp
Go to the documentation of this file.
1
#include "
barretenberg/vm2/simulation/testing/fakes/fake_bitwise.hpp
"
2
3
#include "
barretenberg/numeric/uint128/uint128.hpp
"
4
#include "
barretenberg/numeric/uint256/uint256.hpp
"
5
#include "
barretenberg/vm2/common/field.hpp
"
6
#include "
barretenberg/vm2/common/tagged_value.hpp
"
7
8
namespace
bb::avm2::simulation
{
9
10
MemoryValue
FakeBitwise::and_op
(
const
MemoryValue
&
a
,
const
MemoryValue
&
b
)
11
{
12
return
a
&
b
;
13
}
14
MemoryValue
FakeBitwise::or_op
(
const
MemoryValue
&
a
,
const
MemoryValue
&
b
)
15
{
16
return
a
|
b
;
17
}
18
MemoryValue
FakeBitwise::xor_op
(
const
MemoryValue
&
a
,
const
MemoryValue
&
b
)
19
{
20
return
a
^
b
;
21
}
22
23
}
// namespace bb::avm2::simulation
bb::avm2::TaggedValue
Definition
tagged_value.hpp:70
bb::avm2::simulation::FakeBitwise::and_op
MemoryValue and_op(const MemoryValue &a, const MemoryValue &b) override
Definition
fake_bitwise.cpp:10
bb::avm2::simulation::FakeBitwise::xor_op
MemoryValue xor_op(const MemoryValue &a, const MemoryValue &b) override
Definition
fake_bitwise.cpp:18
bb::avm2::simulation::FakeBitwise::or_op
MemoryValue or_op(const MemoryValue &a, const MemoryValue &b) override
Definition
fake_bitwise.cpp:14
a
FF a
Definition
field_gt.test.cpp:51
b
FF b
Definition
field_gt.test.cpp:52
fake_bitwise.hpp
bb::avm2::simulation
Definition
address_derivation.cpp:8
tagged_value.hpp
uint128.hpp
uint256.hpp
field.hpp
src
barretenberg
vm2
simulation
testing
fakes
fake_bitwise.cpp
Generated by
1.9.8