4 references to Log2
System.Collections (4)
System\Collections\Generic\SortedSet.cs (3)
194var stack = new Stack<Node>(2 * (int)Log2(Count + 1)); 1635var 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)
196Stack<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