Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
range_check.cpp
Go to the documentation of this file.
2
3#include <cassert>
4#include <cstdint>
5
6namespace bb::avm2::simulation {
7
9{
10 assert(num_bits <= 128 && "Range checks aren't supported for bit-sizes > 128");
11
12 events.emit({ .value = value, .num_bits = num_bits });
13}
14
15} // namespace bb::avm2::simulation
void assert_range(uint128_t value, uint8_t num_bits) override
EventEmitterInterface< RangeCheckEvent > & events
unsigned __int128 uint128_t
Definition serialize.hpp:44