4 references to Log2Arity
System.Collections (4)
System\Collections\Generic\PriorityQueue.cs (4)
62
Debug.Assert(
Log2Arity
> 0 && Math.Pow(2,
Log2Arity
) == Arity);
677
private static int GetParentIndex(int index) => (index - 1) >>
Log2Arity
;
682
private static int GetFirstChildIndex(int index) => (index <<
Log2Arity
) + 1;