Skip to content

Commit

Permalink
Newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Dec 29, 2014
1 parent 9e13b32 commit 3816c49
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions coders/dds.c
Expand Up @@ -1110,28 +1110,28 @@ static void CompressClusterFit(const size_t count,

for (iterationIndex = 0;;)
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(dynamic,1) \
num_threads(GetMagickResourceLimit(ThreadResource))
#endif
for (i=0; i < (ssize_t) count; i++)
{
DDSVector4
part0,
part1,
part2;

size_t
ii,
j,
k,
kmin;

VectorInit(part0,0.0f);
for(ii=0; ii < (size_t) i; ii++)
VectorAdd(pointsWeights[ii],part0,&part0);

VectorInit(part1,0.0f);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(dynamic,1) \
num_threads(GetMagickResourceLimit(ThreadResource))
#endif
for (i=0; i < (ssize_t) count; i++)
{
DDSVector4
part0,
part1,
part2;

size_t
ii,
j,
k,
kmin;

VectorInit(part0,0.0f);
for(ii=0; ii < (size_t) i; ii++)
VectorAdd(pointsWeights[ii],part0,&part0);

VectorInit(part1,0.0f);
for (j=(size_t) i;;)
{
if (j == 0)
Expand Down Expand Up @@ -1217,22 +1217,22 @@ static void CompressClusterFit(const size_t count,
error = e2.x + e2.y + e2.z;

if (error < bestError)
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp critical (DDS_CompressClusterFit)
#endif
{
if (error < bestError)
{
VectorCopy43(a,start);
VectorCopy43(b,end);
bestError = error;
besti = i;
bestj = j;
bestk = k;
bestIteration = iterationIndex;
}
}
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp critical (DDS_CompressClusterFit)
#endif
{
if (error < bestError)
{
VectorCopy43(a,start);
VectorCopy43(b,end);
bestError = error;
besti = i;
bestj = j;
bestk = k;
bestIteration = iterationIndex;
}
}
}

if (k == count)
Expand Down

0 comments on commit 3816c49

Please sign in to comment.