Skip to content

Commit

Permalink
Use include_sse2neon.h in gcore/gdal_minmax_element.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 3, 2024
1 parent d9552e3 commit fc5b6f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gcore/gdal_minmax_element.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@
#error "Please define the GDAL_MINMAXELT_NS macro to define the namespace"
#endif

#ifdef USE_NEON_OPTIMIZATIONS
#include "include_sse2neon.h"
#define GDAL_MINMAX_ELEMENT_USE_SSE2
#else
#if defined(__x86_64) || defined(_M_X64)
#define GDAL_MINMAX_ELEMENT_USE_SSE2
#endif

#ifdef GDAL_MINMAX_ELEMENT_USE_SSE2
// SSE2 header
#include <emmintrin.h>
#endif
#endif

#include "gdal_priv_templates.hpp"
#if GDAL_VERSION < GDAL_COMPUTE_VERSION(3, 10, 0)
Expand Down

0 comments on commit fc5b6f6

Please sign in to comment.