From 5ca1bc96459ffe8124f2c515a55a0eb3ed16013a Mon Sep 17 00:00:00 2001 From: evoskuil Date: Thu, 26 Dec 2024 16:11:26 -0500 Subject: [PATCH] Use constexpr/inline for header implementations. --- test/utreexo/utreexo.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/utreexo/utreexo.hpp b/test/utreexo/utreexo.hpp index c493f0c93f..d5e8588701 100644 --- a/test/utreexo/utreexo.hpp +++ b/test/utreexo/utreexo.hpp @@ -202,7 +202,7 @@ inline positions detwin(const positions& nodes, uint8_t forest_rows) NOEXCEPT // TODO: test. // TODO: guard overflows. -bool roots_to_destroy(positions& out, std::vector&& roots, +inline bool roots_to_destroy(positions& out, std::vector&& roots, uint64_t adding, uint64_t leaves) NOEXCEPT { uint8_t row{}; @@ -232,7 +232,7 @@ bool roots_to_destroy(positions& out, std::vector&& roots, // TODO: test. // TODO: guard overflows. -std::tuple detect_offset(uint64_t node, +constexpr std::tuple detect_offset(uint64_t node, uint64_t leaves) NOEXCEPT { uint8_t trees{};