Changeset 5e03fb in git
- Timestamp:
- Jul 19, 2013, 5:19:36 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 91ce59878acf5e8669fdebcfb3b4036d3963a6f5
- Parents:
- e380c094a09f6af6dd282c36d78055ec8bd24ece
- git-author:
- Martin Lee <martinlee84@web.de>2013-07-19 17:19:36+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2013-07-22 15:49:54+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/facFqFactorize.cc
re380c09 r5e03fb 143 143 { 144 144 degsf[i]= 0; 145 swap [i]= new int [ 2];145 swap [i]= new int [3]; 146 146 swap [i] [0]= 0; 147 147 swap [i] [1]= 0; 148 swap [i] [2]= 0; 148 149 } 149 150 int i= 1; … … 157 158 swap[n][0]= i; 158 159 swap[n][1]= size (LC (F,i)); 160 swap[n][2]= degsf [i]; 159 161 if (i != n) 160 162 result= swapvar (result, Variable (n), Variable(i)); … … 162 164 } 163 165 164 int buf1, buf2 ;166 int buf1, buf2, buf3; 165 167 n--; 166 168 … … 173 175 buf1= swap [j + 1] [0]; 174 176 buf2= swap [j + 1] [1]; 177 buf3= swap [j + 1] [2]; 175 178 swap[j + 1] [0]= swap[j] [0]; 176 179 swap[j + 1] [1]= swap[j] [1]; 180 swap[j + 1] [2]= swap[j] [2]; 177 181 swap[j][0]= buf1; 178 182 swap[j][1]= buf2; 183 swap[j][2]= buf3; 184 result= swapvar (result, Variable (j + 1), Variable (j)); 185 } 186 else if (swap[j][1] == swap[j + 1][1] && swap[j][2] < swap[j + 1][2]) 187 { 188 buf1= swap [j + 1] [0]; 189 buf2= swap [j + 1] [1]; 190 buf3= swap [j + 1] [2]; 191 swap[j + 1] [0]= swap[j] [0]; 192 swap[j + 1] [1]= swap[j] [1]; 193 swap[j + 1] [2]= swap[j] [2]; 194 swap[j][0]= buf1; 195 swap[j][1]= buf2; 196 swap[j][2]= buf3; 179 197 result= swapvar (result, Variable (j + 1), Variable (j)); 180 198 }
Note: See TracChangeset
for help on using the changeset viewer.