Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
round.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: not started, auditors: [], date: YYYY-MM-DD }
3// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5// =====================
6
7#include <cstdint>
8
9namespace acir_format {
10
11// Rounds a number to the nearest multiple of 8
12uint32_t round_to_nearest_mul_8(uint32_t num_bits);
13
14// Rounds the number of bits to the nearest byte
15uint32_t round_to_nearest_byte(uint32_t num_bits);
16
17} // namespace acir_format
uint32_t round_to_nearest_mul_8(uint32_t num_bits)
Definition round.cpp:12
uint32_t round_to_nearest_byte(uint32_t num_bits)
Definition round.cpp:23