From 64988a629910c598144c99aa517409b4faab6fdd Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Mon, 13 Jan 2025 16:41:14 +0100 Subject: [PATCH] Add comments --- proto/aggregator/aggregator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index f43e9026a..9d085e80c 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -244,6 +244,7 @@ merge_potential_buckets(struct trie_node *target, const struct trie_node *left, /* Save current bitmap values */ old[i] = target->potential_buckets[i]; + /* Compute intersection */ has_intersection |= !!(target->potential_buckets[i] = left->potential_buckets[i] & right->potential_buckets[i]); bucket_count += popcount32(target->potential_buckets[i]); @@ -746,7 +747,7 @@ deaggregate(struct trie_node *node) } /* - * Merge sets of potential buckets from @node upwards. + * Merge sets of potential buckets going from @node upwards. * Stop when sets don't change and return the last updated node. */ static struct trie_node * -- 2.47.2