]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Add comments
authorIgor Putovny <igor.putovny@nic.cz>
Mon, 13 Jan 2025 15:41:14 +0000 (16:41 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Mon, 13 Jan 2025 15:41:14 +0000 (16:41 +0100)
proto/aggregator/aggregator.c

index f43e9026a69425a10d7c393b7103afa28b9e7160..9d085e80c2f3873ab7b5a6fe004844c517db02a5 100644 (file)
@@ -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 *