mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
Guards AVX2 usage with a preprocessor definition
Ensures that AVX2 intrinsics are only included when the OMATH_USE_AVX2 preprocessor definition is set. This prevents compilation errors when AVX2 support is not available or explicitly disabled.
This commit is contained in:
@@ -10,7 +10,10 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
#ifdef OMATH_USE_AVX2
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace omath
|
namespace omath
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user