Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
pure_gt.hpp
Go to the documentation of this file.
1#pragma once
2
4
9
10namespace bb::avm2::simulation {
11
13 public:
14 PureGreaterThan() = default;
15 ~PureGreaterThan() override = default;
16
17 bool gt(const FF& a, const FF& b) override { return static_cast<uint256_t>(a) > static_cast<uint256_t>(b); }
18 bool gt(const uint128_t& a, const uint128_t& b) override { return a > b; }
19 bool gt(const MemoryValue& a, const MemoryValue& b) override { return a > b; }
20};
21
22} // namespace bb::avm2::simulation
bool gt(const uint128_t &a, const uint128_t &b) override
Definition pure_gt.hpp:18
bool gt(const FF &a, const FF &b) override
Definition pure_gt.hpp:17
bool gt(const MemoryValue &a, const MemoryValue &b) override
Definition pure_gt.hpp:19
FF a
FF b
AvmFlavorSettings::FF FF
Definition field.hpp:10
unsigned __int128 uint128_t
Definition serialize.hpp:44