[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/10.0.0.1309 |
in the Realloc function, making the new array for more elements looks like
this:
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.
thx
-alias
- [DotGNU]question about ArrayList.cs,
Ian Fung <=