Skip to content

Commit 2d2d408

Browse files
zicklaghodoulp
authored andcommitted
Add USE_SSE Checks To Fix Compile on Linux (#677)
Fix 'Not SSE' build on RB-1.1 branch as documented by #617
1 parent ee57091 commit 2d2d408

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/core/Lut1DOp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ OCIO_NAMESPACE_ENTER
189189
return simple_lut[clamp(index, 0.0f, maxIndex)];
190190
}
191191

192+
#if !defined(USE_SSE) || defined(OCIO_UNIT_TEST)
192193
void Lut1D_Nearest(float* rgbaBuffer, long numPixels, const Lut1D & lut)
193194
{
194195
float maxIndex[3];
@@ -218,6 +219,8 @@ OCIO_NAMESPACE_ENTER
218219
rgbaBuffer += 4;
219220
}
220221
}
222+
#endif
223+
221224
#ifdef USE_SSE
222225
void Lut1D_Nearest_SSE(float* rgbaBuffer, long numPixels, const Lut1D & lut)
223226
{

src/core/MathUtils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,13 @@ OCIO_NAMESPACE_ENTER
330330
namespace
331331
{
332332

333+
#if defined(OCIO_UNIT_TEST)
333334
void GetMxbResult(float* vout, float* m, float* x, float* v)
334335
{
335336
GetM44V4Product(vout, m, x);
336337
GetV4Sum(vout, vout, v);
337338
}
339+
#endif
338340

339341
} // anon namespace
340342

0 commit comments

Comments
 (0)