diff options
author | David Robillard <d@drobilla.net> | 2024-07-15 17:27:04 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-15 17:27:04 -0400 |
commit | 28632ce4934a1e370bd663243c804cd9821b0c76 (patch) | |
tree | 0982592527ae7494e4eb3d31de1891070ce42784 | |
parent | 70a6a095e298d09728a696221fcc63e4e19a629f (diff) | |
download | zix-28632ce4934a1e370bd663243c804cd9821b0c76.tar.gz zix-28632ce4934a1e370bd663243c804cd9821b0c76.tar.bz2 zix-28632ce4934a1e370bd663243c804cd9821b0c76.zip |
Add missing pure function attributes
-rw-r--r-- | src/btree.c | 2 |
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) { |