1
0
Fork 0

cogl/half-float: Include SSE intrinsics

The intel intrinsics (including SSE) are only included in the header if
the arch is x86_64 which made the i686 build fail.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3234
Fixes: 568506ecb ("cogl: Add half float implementation")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3499>
This commit is contained in:
Sebastian Wick 2024-01-08 15:52:09 +01:00 committed by Marge Bot
parent 84739c0e96
commit 0cd85e4adf

View file

@ -31,6 +31,13 @@
#include <math.h>
#if defined(__SSE__) || \
(defined(_M_IX86_FP) && (_M_IX86_FP >= 1)) || \
(defined(_M_X64) && !defined(_M_ARM64EC))
#include <xmmintrin.h>
#include <emmintrin.h>
#endif
#include "cogl/cogl-half-float.h"
#include "cogl/cogl-soft-float.h"