diff --git a/libretro-common/audio/conversion/float_to_s16.c b/libretro-common/audio/conversion/float_to_s16.c index aeea20bf67..75cdfd5aab 100644 --- a/libretro-common/audio/conversion/float_to_s16.c +++ b/libretro-common/audio/conversion/float_to_s16.c @@ -55,10 +55,10 @@ void convert_float_to_s16(int16_t *out, if (aligned_samples) convert_float_s16_asm(out, in, aligned_samples); - out = out + aligned_samples; - in = in + aligned_samples; - samples = samples - aligned_samples; - i = 0; + out += aligned_samples; + in += aligned_samples; + samples -= aligned_samples; + i = 0; #else int16x4x2_t oreg; int32x4x2_t creg; diff --git a/libretro-common/audio/conversion/s16_to_float.c b/libretro-common/audio/conversion/s16_to_float.c index 064bf818e0..64c0c39e3c 100644 --- a/libretro-common/audio/conversion/s16_to_float.c +++ b/libretro-common/audio/conversion/s16_to_float.c @@ -53,12 +53,12 @@ void convert_s16_to_float(float *out, convert_s16_float_asm(out, in, aligned_samples, &gain); /* Could do all conversion in ASM, but keep it simple for now. */ - out = out + aligned_samples; - in = in + aligned_samples; - samples = samples - aligned_samples; + out += aligned_samples; + in += aligned_samples; + samples -= aligned_samples; i = 0; #else - float gf = gain / (1<<15); + float gf = gain / (1 << 15); float32x4_t vgf = {gf, gf, gf, gf}; while (samples >= 8) {