Skip to content

Commit

Permalink
Remove static const
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Evstyukhin committed Nov 13, 2020
1 parent b8c9087 commit d10f39b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Bc7PcaEigen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ static ALWAYS_INLINED __m128 FMS_ps(__m128 a, __m128 b, __m128 c)
#endif
}

alignas(16) static const __m128 g_sign = _mm_set1_ps(-0.f);

alignas(16) static float K4[4], InvK4[4];

template<int C>
Expand Down Expand Up @@ -85,6 +83,7 @@ static INLINED int PrincipalComponentAnalysis(const Area& area)

const __m128 mscale = _mm_load_ps(InvK4);
const __m128 mshift = _mm_set1_ps(1.1f);
const __m128 msign = _mm_set1_ps(-0.f);

msum = _mm_setzero_si128();

Expand All @@ -110,7 +109,7 @@ static INLINED int PrincipalComponentAnalysis(const Area& area)

__m128 me = _mm_mul_ps(_mm_sub_ps(_mm_mul_ps(mlambda, mu), mx), mscale);

me = _mm_andnot_ps(g_sign, me);
me = _mm_andnot_ps(msign, me);
me = _mm_sub_ps(me, mshift);
me = _mm_max_ps(me, _mm_setzero_ps());

Expand Down

0 comments on commit d10f39b

Please sign in to comment.