mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-11 21:00:12 -05:00
Add preproc var to detect SSE2 support
This commit is contained in:
parent
5b97570406
commit
848c35e2d7
@ -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
|
||||
#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__
|
||||
|
Loading…
Reference in New Issue
Block a user