| 231 | |
| 232 | |
| 233 | inline void* SubAllocator::AllocUnits(int NU) |
| 234 | { |
| 235 | int indx=Units2Indx[NU-1]; |
| 236 | if ( FreeList[indx].next ) |
| 237 | return RemoveNode(indx); |
| 238 | void* RetVal=LoUnit; |
| 239 | LoUnit += U2B(Indx2Units[indx]); |
| 240 | if (LoUnit <= HiUnit) |
| 241 | return RetVal; |
| 242 | LoUnit -= U2B(Indx2Units[indx]); |
| 243 | return AllocUnitsRare(indx); |
| 244 | } |
| 245 | |
| 246 | |
| 247 | void* SubAllocator::AllocContext() |
no outgoing calls
no test coverage detected