Skip to content

Commit

Permalink
configure: Initialize PNG_ARM_NEON_OPT and PNG_MIPS_MSA_OPT correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ctruta committed Sep 5, 2022
1 parent 9e32b6f commit 6a42bc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -14068,13 +14068,13 @@ printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
arm*|aarch64*)
enable_arm_neon=yes

printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h

;;
mipsel*|mips64el*)
enable_mips_msa=yes

printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h

;;
i?86|x86_64)
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -320,12 +320,12 @@ AC_ARG_ENABLE([hardware-optimizations],
case "$host_cpu" in
arm*|aarch64*)
enable_arm_neon=yes
AC_DEFINE([PNG_ARM_NEON_OPT], [0],
AC_DEFINE([PNG_ARM_NEON_OPT], [2],
[Enable ARM_NEON optimizations])
;;
mipsel*|mips64el*)
enable_mips_msa=yes
AC_DEFINE([PNG_MIPS_MSA_OPT], [0],
AC_DEFINE([PNG_MIPS_MSA_OPT], [2],
[Enable MIPS_MSA optimizations])
;;
i?86|x86_64)
Expand Down

0 comments on commit 6a42bc1

Please sign in to comment.