Add preproc var to detect SSE2 support

This commit is contained in:
Jérémy Lugand 2024-01-04 20:15:14 +01:00
parent 5b97570406
commit 848c35e2d7
No known key found for this signature in database
GPG Key ID: E60AF078DEB97B35

View File

@ -4,14 +4,16 @@
#include "mixer.h"
#ifdef __SSE2__
#include <emmintrin.h>
#if defined(__SSE2__) || defined(__aarch64__)
#define SSE2_AVAILABLE
#else
#ifdef __aarch64__
#include "sse2neon.h"
#else
#warning SSE2 support is not available. Code will not compile
#endif
#pragma message("Warning: SSE2 support is not available. Code will not compile")
#endif
#if defined(__SSE2__)
#include <emmintrin.h>
#elif defined(__aarch64__)
#include "sse2neon.h"
#endif
#ifndef __clang__