OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
math.hpp
Go to the documentation of this file.
1// Copyright (c) 2022 MIT Digital Currency Initiative,
2// Federal Reserve Bank of Boston
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#ifndef OPENCBDC_TX_SRC_PARSEC_AGENT_EVM_MATH_H_
7#define OPENCBDC_TX_SRC_PARSEC_AGENT_EVM_MATH_H_
8
9#include <evmc/evmc.hpp>
10
16 auto operator+(const evmc::uint256be& lhs, const evmc::uint256be& rhs)
17 -> evmc::uint256be;
18
23 auto operator-(const evmc::uint256be& lhs, const evmc::uint256be& rhs)
24 -> evmc::uint256be;
25
30 auto operator*(const evmc::uint256be& lhs, const evmc::uint256be& rhs)
31 -> evmc::uint256be;
32
37 auto operator<<(const evmc::uint256be& lhs, size_t count)
38 -> evmc::uint256be;
39}
40
41#endif
auto operator+(const evmc::uint256be &lhs, const evmc::uint256be &rhs) -> evmc::uint256be
Adds two uint256be values.
Definition math.cpp:14
auto operator*(const evmc::uint256be &lhs, const evmc::uint256be &rhs) -> evmc::uint256be
Multiplies two uint256be values.
Definition math.cpp:46
auto operator<<(const evmc::uint256be &lhs, size_t count) -> evmc::uint256be
Left shifts a uint256be value by a given number of bytes.
Definition math.cpp:74
auto operator-(const evmc::uint256be &lhs, const evmc::uint256be &rhs) -> evmc::uint256be
Subtracts two uint256be values.
Definition math.cpp:28