4 references to Log2
System.Collections (4)
System\Collections\Generic\SortedSet.cs (3)
194
var stack = new Stack<Node>(2 * (int)
Log2
(Count + 1));
1635
var pendingNodes = new Stack<(Node source, Node target)>(2 *
Log2
(count) + 2);
1854
_stack = new Stack<Node>(2 * (int)
Log2
(set.TotalCount() + 1));
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
196
Stack<Node> stack = new Stack<Node>(2 * (int)SortedSet<T>.
Log2
(count + 1)); // this is not exactly right if count is out of date, but the stack can grow