| 53 | |
| 54 | |
| 55 | inline void SubAllocator::SplitBlock(void* pv,int OldIndx,int NewIndx) |
| 56 | { |
| 57 | int i, UDiff=Indx2Units[OldIndx]-Indx2Units[NewIndx]; |
| 58 | byte* p=((byte*) pv)+U2B(Indx2Units[NewIndx]); |
| 59 | if (Indx2Units[i=Units2Indx[UDiff-1]] != UDiff) |
| 60 | { |
| 61 | InsertNode(p,--i); |
| 62 | p += U2B(i=Indx2Units[i]); |
| 63 | UDiff -= i; |
| 64 | } |
| 65 | InsertNode(p,Units2Indx[UDiff-1]); |
| 66 | } |
| 67 | |
| 68 | |
| 69 | void SubAllocator::StopSubAllocator() |
nothing calls this directly
no outgoing calls
no test coverage detected