History

More consistent HAVE_ARMV6 define.

lieff committed 6 years ago

Commit bfe87321 parent f4b44f81 file · +2 −4Browse files

Unified · Split

minimp3.h+2−4
@@ -191,11 +191,7 @@ static int have_simd() · 190 unmodified lines
191191 #define HAVE_SIMD 0
192192 #endif /* !defined(MINIMP3_NO_SIMD) */
193193
194−#define HAVE_ARMV6 0
195194 #if defined(__ARM_ARCH) && (__ARM_ARCH >= 6) && !defined(__aarch64__)
196−#ifdef HAVE_ARMV6
197− #undef HAVE_ARMV6
198−#endif
199195 #define HAVE_ARMV6 1
200196 static __inline__ __attribute__((always_inline)) int32_t minimp3_clip_int16_arm(int32_t a)
201197 {
@@ -203,6 +199,8 @@ static __inline__ __attribute__((always_inline)) int32_t minimp3_clip_int16_arm( · 1 unmodified line
203199 __asm__ ("ssat %0, #16, %1" : "=r"(x) : "r"(a));
204200 return x;
205201 }
202+#else
203+#define HAVE_ARMV6 0
206204 #endif
207205
208206 typedef struct

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t