Skip to content

Commit 24a18bd

Browse files
authored
Merge pull request #1573 from evoskuil/master
Use constexpr/inline for header implementations.
2 parents 530eff3 + 5ca1bc9 commit 24a18bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/utreexo/utreexo.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ inline positions detwin(const positions& nodes, uint8_t forest_rows) NOEXCEPT
202202

203203
// TODO: test.
204204
// TODO: guard overflows.
205-
bool roots_to_destroy(positions& out, std::vector<node_hash>&& roots,
205+
inline bool roots_to_destroy(positions& out, std::vector<node_hash>&& roots,
206206
uint64_t adding, uint64_t leaves) NOEXCEPT
207207
{
208208
uint8_t row{};
@@ -232,7 +232,7 @@ bool roots_to_destroy(positions& out, std::vector<node_hash>&& roots,
232232

233233
// TODO: test.
234234
// TODO: guard overflows.
235-
std::tuple<uint8_t, uint8_t, uint64_t> detect_offset(uint64_t node,
235+
constexpr std::tuple<uint8_t, uint8_t, uint64_t> detect_offset(uint64_t node,
236236
uint64_t leaves) NOEXCEPT
237237
{
238238
uint8_t trees{};

0 commit comments

Comments
 (0)