|
|
85903e1 |
diff --git a/configure.ac b/configure.ac
|
|
|
a726775 |
index 4fb0778..930bf50 100644
|
|
|
85903e1 |
--- a/configure.ac
|
|
|
85903e1 |
+++ b/configure.ac
|
|
|
85903e1 |
@@ -283,17 +283,21 @@ AC_ARG_ENABLE([arm-neon],
|
|
|
85903e1 |
[case "$enableval" in
|
|
|
85903e1 |
no|off)
|
|
|
85903e1 |
# disable the default enabling on __ARM_NEON__ systems:
|
|
|
85903e1 |
+ AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
|
|
|
85903e1 |
AC_DEFINE([PNG_ARM_NEON_OPT], [0],
|
|
|
85903e1 |
[Disable ARM Neon optimizations])
|
|
|
85903e1 |
# Prevent inclusion of the assembler files below:
|
|
|
85903e1 |
enable_arm_neon=no;;
|
|
|
85903e1 |
check)
|
|
|
85903e1 |
+ AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
|
|
|
85903e1 |
AC_DEFINE([PNG_ARM_NEON_CHECK_SUPPORTED], [],
|
|
|
85903e1 |
[Check for ARM Neon support at run-time]);;
|
|
|
85903e1 |
api)
|
|
|
85903e1 |
+ AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
|
|
|
85903e1 |
AC_DEFINE([PNG_ARM_NEON_API_SUPPORTED], [],
|
|
|
85903e1 |
[Turn on ARM Neon optimizations at run-time]);;
|
|
|
85903e1 |
yes|on)
|
|
|
85903e1 |
+ AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
|
|
|
85903e1 |
AC_DEFINE([PNG_ARM_NEON_OPT], [2],
|
|
|
85903e1 |
[Enable ARM Neon optimizations])
|
|
|
85903e1 |
AC_MSG_WARN([--enable-arm-neon: please specify 'check' or 'api', if]
|
|
|
85903e1 |
diff --git a/pngpriv.h b/pngpriv.h
|
|
|
a726775 |
index 1997503..789206f 100644
|
|
|
85903e1 |
--- a/pngpriv.h
|
|
|
85903e1 |
+++ b/pngpriv.h
|
|
|
a726775 |
@@ -125,7 +125,7 @@
|
|
|
a726775 |
* associated assembler code, pass --enable-arm-neon=no to configure
|
|
|
a726775 |
* or put -DPNG_ARM_NEON_OPT=0 in CPPFLAGS.
|
|
|
85903e1 |
*/
|
|
|
85903e1 |
-# if (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
|
|
|
85903e1 |
+# if defined(PNG_ARM_NEON) && (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
|
|
|
85903e1 |
defined(PNG_ALIGNED_MEMORY_SUPPORTED)
|
|
|
85903e1 |
# define PNG_ARM_NEON_OPT 2
|
|
|
85903e1 |
# else
|