vcpkg/ports/openexr/avx.patch
Alexander Neumann f9a27e08b3
[openexr] Fix openexr using unrequested intrinsics (#29996)
* [openexr] fix usage of unrequested intrinsics

* v db

* remove intrin patch

* v db

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-03-15 14:51:43 -07:00

14 lines
532 B
Diff

diff --git a/src/lib/OpenEXRCore/unpack.c b/src/lib/OpenEXRCore/unpack.c
index 7587eb2..79061b8 100644
--- a/src/lib/OpenEXRCore/unpack.c
+++ b/src/lib/OpenEXRCore/unpack.c
@@ -37,7 +39,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__)