Changeset 2282 in Sophya for trunk/ArchTOIPipe/Kernel/toiprocessor.cc
- Timestamp:
- Nov 28, 2002, 4:49:21 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r2187 r2282 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toiprocessor.cc,v 1.2 6 2002-09-09 15:33:15aubourg Exp $5 // $Id: toiprocessor.cc,v 1.27 2002-11-28 15:49:21 aubourg Exp $ 6 6 7 7 #include "toiprocessor.h" … … 94 94 95 95 int TOIProcessor::getMinOut() { 96 /* 97 //cout << name << "minout" << endl; 98 if (minOut < 0) minOut = calcMinOut(); 99 //cout << name << "minout=" << minOut << endl; 100 return minOut; 101 */ 102 return snBegin + lowExtra; 96 // return snBegin + lowExtra; 97 return snBegin; 103 98 } 104 99 105 100 int TOIProcessor::getMaxOut() { 106 /* 107 //cout << name << "maxout" << endl; 108 if (maxOut < 0) maxOut = calcMaxOut(); 109 //cout << name << "maxout=" << maxOut << endl; 110 return maxOut; 111 */ 112 return snEnd - upExtra; 101 // return snEnd - upExtra; 102 return snEnd; 113 103 } 114 104 … … 122 112 123 113 int TOIProcessor::getMinIn() { 124 /* 125 int nIn = inIx.size(); 126 int minIn = 0; 127 for (int i=0; i<nIn; i++) { 128 TOI* toi = inTOIs[i]; 129 if (toi == NULL) continue; // Protection - Reza 13/3/2001 130 int x = toi->getMinSn(); 131 if (x > minIn) minIn = x; 132 } 133 if (forcedMinIn > 0 && forcedMinIn > minIn) minIn = forcedMinIn; 134 return minIn; 135 */ 136 return snBegin; 114 // return snBegin; 115 return snBegin - lowExtra; 137 116 } 138 117 139 118 int TOIProcessor::getMaxIn() { 140 /* 141 int_4 nIn = inIx.size(); 142 int_4 maxIn = MAXINT; 143 for (int i=0; i<nIn; i++) { 144 TOI* toi = inTOIs[i]; 145 if (toi == NULL) continue; // Protection - Reza 13/3/2001 146 int_4 x = toi->getMaxSn(); 147 if (x < maxIn) maxIn = x; 148 } 149 if (forcedMaxIn > 0 && forcedMaxIn < maxIn) maxIn = forcedMaxIn; 150 return maxIn; 151 */ 152 return snEnd; 119 // return snEnd; 120 return snEnd + upExtra; 153 121 } 154 122
Note:
See TracChangeset
for help on using the changeset viewer.