Changeset 242 in dev for trunk/abdev/BasicCompiler_Common/PESchedule.cpp
- Timestamp:
- Jul 27, 2007, 3:40:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/PESchedule.cpp
r223 r242 232 232 233 233 CSubAddrSchedule *pobj_SubAddrSchedule; 234 235 236 237 238 /////////////////////////////////////////239 // 一時スケジューリングポインタ240 /////////////////////////////////////////241 CTempSchedule::CTempSchedule(){242 ppObpValues=(int **)HeapAlloc(hHeap,0,1);243 num=0;244 }245 CTempSchedule::~CTempSchedule(){246 HeapDefaultFree(ppObpValues);247 }248 void CTempSchedule::lock(int *pobp){249 ppObpValues=(int **)HeapReAlloc(hHeap,0,ppObpValues,(num+1)*sizeof(int *));250 ppObpValues[num]=pobp;251 num++;252 }253 void CTempSchedule::unlock(){254 if( num <= 0 ){255 //エラー256 SetError(300,NULL,cp);257 }258 num--;259 }260 void CTempSchedule::move(int iStartPos,int iSize,int offset){261 int i;262 for(i=0;i<num;i++){263 if(iStartPos<=*ppObpValues[i] && *ppObpValues[i]<iStartPos+iSize){264 (*ppObpValues[i])+=offset;265 }266 }267 }268 269 CTempSchedule *pobj_TempSchedule;270 271 272 273
Note:
See TracChangeset
for help on using the changeset viewer.