WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
ilog2.hpp File Reference
#include <climits>
#include <cstdint>
#include "../config.hpp"

Go to the source code of this file.

Namespaces

namespace  wpi
 Foonathan namespace.
 
namespace  wpi::memory
 Memory namespace.
 
namespace  wpi::memory::detail
 

Functions

template<typename UInt >
constexpr bool wpi::memory::detail::is_power_of_two (UInt x)
 
std::size_t wpi::memory::detail::ilog2_base (std::uint64_t x)
 
std::size_t wpi::memory::detail::ilog2 (std::uint64_t x)
 
std::size_t wpi::memory::detail::ilog2_ceil (std::uint64_t x)