(iOS) Linker requires that ASM function names are prefixed with '_' -

verified it still builds on Android
This commit is contained in:
twinaphex 2013-12-30 17:52:42 +01:00
parent 255c3dcbd4
commit c80e4c4315
2 changed files with 6 additions and 0 deletions

View File

@ -16,9 +16,11 @@
.arm
.align 4
.globl process_sinc_neon_asm
.globl _process_sinc_neon_asm
# void process_sinc_neon(float *out, const float *left, const float *right, const float *coeff, unsigned taps)
# Assumes taps is >= 8, and a multiple of 8.
process_sinc_neon_asm:
_process_sinc_neon_asm:
push {r4, lr}
vmov.f32 q0, #0.0

View File

@ -17,8 +17,10 @@
.align 4
.globl audio_convert_s16_float_asm
.globl _audio_convert_s16_float_asm
# audio_convert_s16_float_asm(float *out, const int16_t *in, size_t samples, const float *gain)
audio_convert_s16_float_asm:
_audio_convert_s16_float_asm:
# Hacky way to get a constant of 2^-15.
# Might be faster to just load a constant from memory.
# It's just done once however ...
@ -57,8 +59,10 @@ audio_convert_s16_float_asm:
.align 4
.globl audio_convert_float_s16_asm
.globl _audio_convert_float_s16_asm
# audio_convert_float_s16_asm(int16_t *out, const float *in, size_t samples)
audio_convert_float_s16_asm:
_audio_convert_float_s16_asm:
# Hacky way to get a constant of 2^15.
# ((2^4)^2)^2 * 0.5 = 2^15
vmov.f32 q8, #16.0