Revision 693cc52e
Added by Leszek Koltunski 12 months ago
src/main/java/org/distorted/objectlib/tablebases/TablebasesPruning.java | ||
---|---|---|
174 | 174 |
move[2]=1; |
175 | 175 |
move[3]=1; |
176 | 176 |
|
177 |
for(int cubit=0; cubit<mNumCubits; cubit++) computeRow(mPosition[cubit],quats[cubit],mRotRow[cubit]);
|
|
177 |
for(int cubit=0; cubit<mNumCubits; cubit++) mRotRow[cubit] = computeRow(cubit,quats[cubit]);
|
|
178 | 178 |
|
179 | 179 |
for(int s=0; s<mScalingFactor; s++) |
180 | 180 |
{ |
... | ... | |
285 | 285 |
move[2]=1; |
286 | 286 |
move[3]=1; |
287 | 287 |
|
288 |
for(int cubit=0; cubit<mNumCubits; cubit++) computeRow(mPosition[cubit],quats[cubit],rotRow[cubit]);
|
|
288 |
for(int cubit=0; cubit<mNumCubits; cubit++) rotRow[cubit] = computeRow(cubit,quats[cubit]);
|
|
289 | 289 |
|
290 | 290 |
for(int s=0; s<mScalingFactor; s++) |
291 | 291 |
{ |
... | ... | |
300 | 300 |
|
301 | 301 |
for(int cubit=0; cubit<mNumCubits; cubit++) |
302 | 302 |
if( (rotRow[cubit][ax] & bitLayer) != 0 ) |
303 |
{ |
|
304 |
int currQuat = tmp[cubit]; |
|
305 |
int newQuat = getMultQuat(quat,currQuat); |
|
306 |
tmp[cubit] = newQuat; |
|
307 |
} |
|
303 |
tmp[cubit] = getMultQuat(quat,tmp[cubit]); |
|
308 | 304 |
|
309 | 305 |
int childIndex = getIndex(tmp); |
310 | 306 |
|
... | ... | |
373 | 369 |
move[2]=1; |
374 | 370 |
move[3]=1; |
375 | 371 |
|
376 |
for(int cubit=0; cubit<mNumCubits; cubit++) computeRow(mPosition[cubit],quats[cubit],rotRow[cubit]);
|
|
372 |
for(int cubit=0; cubit<mNumCubits; cubit++) rotRow[cubit] = computeRow(cubit,quats[cubit]);
|
|
377 | 373 |
|
378 | 374 |
for(int s=0; s<mScalingFactor; s++) |
379 | 375 |
{ |
Also available in: Unified diff
speedup