Use NEON on ARM hardware via sse2neon.h

The autoconf changes were adapted from:
https://github.com/glennrp/libpng/blob/libpng16/configure.ac
This commit is contained in:
Dino Kovač
2022-04-16 22:48:59 +02:00
parent 893745f09b
commit 6064bc6c06
7 changed files with 9025 additions and 32 deletions

View File

@@ -8,8 +8,10 @@
#define ks_lt_index(a, b) ((a).value < (b).value)
#ifdef USE_SSE
#if defined(INTEL_SSE)
#include <emmintrin.h>
#elif defined(ARM_NEON)
#include "sse2neon.h"
#endif
/*
@@ -338,7 +340,7 @@
#ifdef USE_SSE
#if defined(INTEL_SSE) || defined(ARM_NEON)
/*
From https://github.com/herumi/fmath/blob/master/fastexp.cpp
@@ -524,4 +526,4 @@ static inline void remez9_0_log2_sse(double *values, size_t num)
#endif
#endif