shithub: mp3dec

Download patch

ref: b9092374f230ebf9503fd1100a3950f858f8524e
parent: c827601f5e4e056d3f2464b847882bbef8025f66
author: lieff <lieff@users.noreply.github.com>
date: Wed Jan 31 12:21:38 EST 2018

use __ARM_NEON to detect neon compiler support

--- a/minimp3.h
+++ b/minimp3.h
@@ -155,7 +155,7 @@
     return 0;
 #endif
 }
-#elif defined(__arm)
+#elif defined(__ARM_NEON)
 #   include <arm_neon.h>
 #   define HAVE_SIMD 1
 #   define VSTORE vst1q_f32
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -18,3 +18,8 @@
 -mthumb -mcpu=cortex-m4 \
 -ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_arm minimp3_test.c --specs=rdimon.specs -lm
 qemu-arm ./minimp3_arm
+
+#arm-none-eabi-gcc -O2 -g -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \
+#-marm -mcpu=cortex-a15 -mfpu=neon -mfloat-abi=softfp \
+#-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_arm minimp3_test.c --specs=rdimon.specs -lm
+#qemu-arm ./minimp3_arm