From a1ab2f25e40e3d054539a4da56ea95971be0e227 Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Thu, 16 Mar 2023 07:23:18 -0700 Subject: [PATCH] Test for AVC in unpack.c (#1354) Addresses #1353 Signed-off-by: Cary Phillips --- src/lib/OpenEXRCore/unpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/OpenEXRCore/unpack.c b/src/lib/OpenEXRCore/unpack.c index 7587eb2b11..ca20e94a56 100644 --- a/src/lib/OpenEXRCore/unpack.c +++ b/src/lib/OpenEXRCore/unpack.c @@ -37,7 +37,7 @@ half_to_float8 (float* out, const uint16_t* src) } #endif -#if (defined(__x86_64__) || defined(_M_X64)) && \ +#if (defined(__x86_64__) || defined(_M_X64)) && defined(__AVX__) && \ (defined(__F16C__) || defined(__GNUC__) || defined(__clang__)) # if defined(__F16C__)