[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]question about ArrayList.cs

From: Ian Fung
Subject: [DotGNU]question about ArrayList.cs
Date: Sun, 15 Sep 2002 15:54:53 -0400
User-agent: Microsoft-Entourage/

in the Realloc function, making the new array for more elements looks like

int newCapacity = (((count + n) + 31) & ~31);

I assume the + 31 and & ~31 is some hack. I was just wondering why it needed
to be there. is it something about bits being in the right place cause the
way IL works etcetc? just wondering.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]