summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-07-15 17:27:04 -0400
committerDavid Robillard <d@drobilla.net>2024-07-15 17:27:04 -0400
commit28632ce4934a1e370bd663243c804cd9821b0c76 (patch)
tree0982592527ae7494e4eb3d31de1891070ce42784
parent70a6a095e298d09728a696221fcc63e4e19a629f (diff)
downloadzix-28632ce4934a1e370bd663243c804cd9821b0c76.tar.gz
zix-28632ce4934a1e370bd663243c804cd9821b0c76.tar.bz2
zix-28632ce4934a1e370bd663243c804cd9821b0c76.zip
Add missing pure function attributes
-rw-r--r--src/btree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/btree.c b/src/btree.c
index 7970796..db7f922 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -394,6 +394,7 @@ zix_btree_leaf_find(const ZixBTree* const t,
t->cmp, t->cmp_data, n->data.leaf.vals, n->n_vals, e, equal);
}
+ZIX_PURE_FUNC
static inline bool
zix_btree_can_remove_from(const ZixBTreeNode* const n)
{
@@ -401,6 +402,7 @@ zix_btree_can_remove_from(const ZixBTreeNode* const n)
return n->n_vals > zix_btree_min_vals(n);
}
+ZIX_PURE_FUNC
static inline bool
zix_btree_is_full(const ZixBTreeNode* const n)
{