Skip to content

Commit fc3ba3c

Browse files
authored
Fix ARMv7 build for DwaCompressor, too. (#1368)
To fix #1367. Signed-off-by: Matthias Andree <[email protected]>
1 parent f29c01b commit fc3ba3c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/lib/OpenEXR/ImfDwaCompressor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,7 @@ DwaCompressor::initializeFuncs ()
27892789
fromHalfZigZag = fromHalfZigZag_f16c;
27902790
}
27912791

2792-
#ifdef IMF_HAVE_NEON
2792+
#ifdef IMF_HAVE_NEON_AARCH64
27932793
{
27942794
convertFloatToHalf64 = convertFloatToHalf64_neon;
27952795
fromHalfZigZag = fromHalfZigZag_neon;

src/lib/OpenEXR/ImfDwaCompressorSimd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ convertFloatToHalf64_scalar (unsigned short* dst, float* src)
395395
dst[i] = ((half) src[i]).bits ();
396396
}
397397

398-
#ifdef IMF_HAVE_NEON
398+
#ifdef IMF_HAVE_NEON_AARCH64
399399

400400
void
401401
convertFloatToHalf64_neon (unsigned short* dst, float* src)
@@ -821,7 +821,7 @@ fromHalfZigZag_f16c (unsigned short* src, float* dst)
821821
#endif /* defined IMF_HAVE_GCC_INLINEASM_X86_64 */
822822
}
823823

824-
#ifdef IMF_HAVE_NEON
824+
#ifdef IMF_HAVE_NEON_AARCH64
825825

826826

827827
void
@@ -856,7 +856,7 @@ fromHalfZigZag_neon(unsigned short* __restrict__ src, float* __restrict__ dst)
856856
}
857857
}
858858

859-
#endif // IMF_HAVE_NEON
859+
#endif // IMF_HAVE_NEON_AARCH64
860860

861861
//
862862
// Inverse 8x8 DCT, only inverting the DC. This assumes that

src/test/OpenEXRTest/testDwaCompressorSimd.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ testFloatToHalf ()
408408
}
409409
}
410410

411-
#ifdef IMF_HAVE_NEON
411+
#ifdef IMF_HAVE_NEON_AARCH64
412412
{
413413
cout << " convertFloatToHalf64_neon()" << endl;
414414
for (int iter = 0; iter < numIter; ++iter)
@@ -437,7 +437,7 @@ testFloatToHalf ()
437437
}
438438
}
439439
}
440-
#endif // IMF_HAVE_NEON
440+
#endif // IMF_HAVE_NEON_AARCH64
441441
}
442442

443443
//
@@ -520,7 +520,7 @@ testFromHalfZigZag ()
520520
} // iter
521521
} // f16c
522522

523-
#ifdef IMF_HAVE_NEON
523+
#ifdef IMF_HAVE_NEON_AARCH64
524524
{
525525
const int numIter = 1000000;
526526
Rand48 rand48 (0);
@@ -557,7 +557,7 @@ testFromHalfZigZag ()
557557
} // iter
558558
} // neon
559559

560-
#endif // IMF_HAVE_NEON
560+
#endif // IMF_HAVE_NEON_AARCH64
561561
}
562562

563563
} // namespace

0 commit comments

Comments
 (0)