Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
count_leading_zeros.hpp File Reference
#include "../uint128/uint128.hpp"
#include "../uint256/uint256.hpp"
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::numeric
 

Functions

template<typename T >
constexpr size_t bb::numeric::count_leading_zeros (T const &u)
 
template<>
constexpr size_t bb::numeric::count_leading_zeros< uint32_t > (uint32_t const &u)
 
template<>
constexpr size_t bb::numeric::count_leading_zeros< uint64_t > (uint64_t const &u)
 
template<>
constexpr size_t bb::numeric::count_leading_zeros< uint128_t > (uint128_t const &u)
 
template<>
constexpr size_t bb::numeric::count_leading_zeros< uint256_t > (uint256_t const &u)