mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(iOS) Linker requires that ASM function names are prefixed with '_' -
verified it still builds on Android
This commit is contained in:
parent
255c3dcbd4
commit
c80e4c4315
@ -16,9 +16,11 @@
|
|||||||
.arm
|
.arm
|
||||||
.align 4
|
.align 4
|
||||||
.globl process_sinc_neon_asm
|
.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)
|
# 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.
|
# Assumes taps is >= 8, and a multiple of 8.
|
||||||
process_sinc_neon_asm:
|
process_sinc_neon_asm:
|
||||||
|
_process_sinc_neon_asm:
|
||||||
|
|
||||||
push {r4, lr}
|
push {r4, lr}
|
||||||
vmov.f32 q0, #0.0
|
vmov.f32 q0, #0.0
|
||||||
|
@ -17,8 +17,10 @@
|
|||||||
|
|
||||||
.align 4
|
.align 4
|
||||||
.globl audio_convert_s16_float_asm
|
.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(float *out, const int16_t *in, size_t samples, const float *gain)
|
||||||
audio_convert_s16_float_asm:
|
audio_convert_s16_float_asm:
|
||||||
|
_audio_convert_s16_float_asm:
|
||||||
# Hacky way to get a constant of 2^-15.
|
# Hacky way to get a constant of 2^-15.
|
||||||
# Might be faster to just load a constant from memory.
|
# Might be faster to just load a constant from memory.
|
||||||
# It's just done once however ...
|
# It's just done once however ...
|
||||||
@ -57,8 +59,10 @@ audio_convert_s16_float_asm:
|
|||||||
|
|
||||||
.align 4
|
.align 4
|
||||||
.globl audio_convert_float_s16_asm
|
.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(int16_t *out, const float *in, size_t samples)
|
||||||
audio_convert_float_s16_asm:
|
audio_convert_float_s16_asm:
|
||||||
|
_audio_convert_float_s16_asm:
|
||||||
# Hacky way to get a constant of 2^15.
|
# Hacky way to get a constant of 2^15.
|
||||||
# ((2^4)^2)^2 * 0.5 = 2^15
|
# ((2^4)^2)^2 * 0.5 = 2^15
|
||||||
vmov.f32 q8, #16.0
|
vmov.f32 q8, #16.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user