5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MATH_LOG2_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MATH_LOG2_HPP_
15#include "arene/base/contracts/contract.hpp"
16#include "arene/base/stdlib_choice/cstddef.hpp"
29 ARENE_PRECONDITION(value > std::size_t{});
32 constexpr std::size_t two{2U};
33 while (value >= two) {
Definition array_exceptions_disabled.cpp:11
constexpr auto log2(std::size_t value) noexcept -> std::size_t
Computes the integer base-2 log of a value.
Definition log2.hpp:28
Copyright 2026, Toyota Motor Corporation.
Definition array_exceptions_disabled.cpp:10