indention changed
parent
90a65bb838
commit
cc51c2334d
|
@ -75,9 +75,9 @@ void Operator_SSE_Compressed::Reset()
|
||||||
if (m_Op_index)
|
if (m_Op_index)
|
||||||
{
|
{
|
||||||
unsigned int pos[3];
|
unsigned int pos[3];
|
||||||
for (pos[0]=0;pos[0]<numLines[0];++pos[0])
|
for (pos[0]=0; pos[0]<numLines[0]; ++pos[0])
|
||||||
{
|
{
|
||||||
for (pos[1]=0;pos[1]<numLines[1];++pos[1])
|
for (pos[1]=0; pos[1]<numLines[1]; ++pos[1])
|
||||||
{
|
{
|
||||||
delete[] m_Op_index[pos[0]][pos[1]];
|
delete[] m_Op_index[pos[0]][pos[1]];
|
||||||
}
|
}
|
||||||
|
@ -102,13 +102,13 @@ void Operator_SSE_Compressed::InitOperator()
|
||||||
|
|
||||||
unsigned int pos[3];
|
unsigned int pos[3];
|
||||||
m_Op_index = new unsigned int**[numLines[0]];
|
m_Op_index = new unsigned int**[numLines[0]];
|
||||||
for (pos[0]=0;pos[0]<numLines[0];++pos[0])
|
for (pos[0]=0; pos[0]<numLines[0]; ++pos[0])
|
||||||
{
|
{
|
||||||
m_Op_index[pos[0]] = new unsigned int*[numLines[1]];
|
m_Op_index[pos[0]] = new unsigned int*[numLines[1]];
|
||||||
for (pos[1]=0;pos[1]<numLines[1];++pos[1])
|
for (pos[1]=0; pos[1]<numLines[1]; ++pos[1])
|
||||||
{
|
{
|
||||||
m_Op_index[pos[0]][pos[1]] = new unsigned int[numVectors];
|
m_Op_index[pos[0]][pos[1]] = new unsigned int[numVectors];
|
||||||
for (pos[2]=0;pos[2]<numVectors;++pos[2])
|
for (pos[2]=0; pos[2]<numVectors; ++pos[2])
|
||||||
{
|
{
|
||||||
m_Op_index[pos[0]][pos[1]][pos[2]] = 0;
|
m_Op_index[pos[0]][pos[1]][pos[2]] = 0;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ INLINE int equal(f4vector v1, f4vector v2)
|
||||||
bool Operator_SSE_Compressed::CompareOperators(unsigned int pos1[3], unsigned int pos2[3])
|
bool Operator_SSE_Compressed::CompareOperators(unsigned int pos1[3], unsigned int pos2[3])
|
||||||
{
|
{
|
||||||
// cerr << pos1[0] << " " << pos1[1] << " " << pos1[2] << endl;
|
// cerr << pos1[0] << " " << pos1[1] << " " << pos1[2] << endl;
|
||||||
for (int n=0;n<3;++n)
|
for (int n=0; n<3; ++n)
|
||||||
{
|
{
|
||||||
if (!equal( f4_vv[n][pos1[0]][pos1[1]][pos1[2]], f4_vv[n][pos2[0]][pos2[1]][pos2[2]] )) return false;
|
if (!equal( f4_vv[n][pos1[0]][pos1[1]][pos1[2]], f4_vv[n][pos2[0]][pos2[1]][pos2[2]] )) return false;
|
||||||
if (!equal( f4_vi[n][pos1[0]][pos1[1]][pos1[2]], f4_vi[n][pos2[0]][pos2[1]][pos2[2]] )) return false;
|
if (!equal( f4_vi[n][pos1[0]][pos1[1]][pos1[2]], f4_vi[n][pos2[0]][pos2[1]][pos2[2]] )) return false;
|
||||||
|
@ -162,11 +162,11 @@ bool Operator_SSE_Compressed::CompressOperator()
|
||||||
map<SSE_coeff,unsigned int> lookUpMap;
|
map<SSE_coeff,unsigned int> lookUpMap;
|
||||||
|
|
||||||
unsigned int pos[3];
|
unsigned int pos[3];
|
||||||
for (pos[0]=0;pos[0]<numLines[0];++pos[0])
|
for (pos[0]=0; pos[0]<numLines[0]; ++pos[0])
|
||||||
{
|
{
|
||||||
for (pos[1]=0;pos[1]<numLines[1];++pos[1])
|
for (pos[1]=0; pos[1]<numLines[1]; ++pos[1])
|
||||||
{
|
{
|
||||||
for (pos[2]=0;pos[2]<numVectors;++pos[2])
|
for (pos[2]=0; pos[2]<numVectors; ++pos[2])
|
||||||
{
|
{
|
||||||
f4vector vv[3] = { f4_vv[0][pos[0]][pos[1]][pos[2]], f4_vv[1][pos[0]][pos[1]][pos[2]], f4_vv[2][pos[0]][pos[1]][pos[2]] };
|
f4vector vv[3] = { f4_vv[0][pos[0]][pos[1]][pos[2]], f4_vv[1][pos[0]][pos[1]][pos[2]], f4_vv[2][pos[0]][pos[1]][pos[2]] };
|
||||||
f4vector vi[3] = { f4_vi[0][pos[0]][pos[1]][pos[2]], f4_vi[1][pos[0]][pos[1]][pos[2]], f4_vi[2][pos[0]][pos[1]][pos[2]] };
|
f4vector vi[3] = { f4_vi[0][pos[0]][pos[1]][pos[2]], f4_vi[1][pos[0]][pos[1]][pos[2]], f4_vi[2][pos[0]][pos[1]][pos[2]] };
|
||||||
|
@ -219,7 +219,8 @@ bool Operator_SSE_Compressed::CompressOperator()
|
||||||
|
|
||||||
SSE_coeff::SSE_coeff( f4vector vv[3], f4vector vi[3], f4vector iv[3], f4vector ii[3] )
|
SSE_coeff::SSE_coeff( f4vector vv[3], f4vector vi[3], f4vector iv[3], f4vector ii[3] )
|
||||||
{
|
{
|
||||||
for (int n=0; n<3; n++) {
|
for (int n=0; n<3; n++)
|
||||||
|
{
|
||||||
m_vv[n] = vv[n];
|
m_vv[n] = vv[n];
|
||||||
m_vi[n] = vi[n];
|
m_vi[n] = vi[n];
|
||||||
m_iv[n] = iv[n];
|
m_iv[n] = iv[n];
|
||||||
|
|
Loading…
Reference in New Issue