ref: bfe8732f47fcaffc1450251df0f9cb44c7fca916
parent: f4b44f8ef8110e22ed95e5f7d6852534a03e5e50
author: lieff <lieff@users.noreply.github.com>
date: Mon Sep 14 09:02:31 EDT 2020
More consistent HAVE_ARMV6 define.
--- a/minimp3.h
+++ b/minimp3.h
@@ -191,11 +191,7 @@
#define HAVE_SIMD 0
#endif /* !defined(MINIMP3_NO_SIMD) */
-#define HAVE_ARMV6 0
#if defined(__ARM_ARCH) && (__ARM_ARCH >= 6) && !defined(__aarch64__)
-#ifdef HAVE_ARMV6
- #undef HAVE_ARMV6
-#endif
#define HAVE_ARMV6 1
static __inline__ __attribute__((always_inline)) int32_t minimp3_clip_int16_arm(int32_t a)
{
@@ -203,6 +199,8 @@
__asm__ ("ssat %0, #16, %1" : "=r"(x) : "r"(a));
return x;
}
+#else
+#define HAVE_ARMV6 0
#endif
typedef struct