(PPC Altivec) turn vec_splats into vec_splat - PPC OSX (Leopard) doesn't

support vec_splats intrinsic
This commit is contained in:
twinaphex 2014-02-11 18:32:18 +11:00
parent 131ea08c26
commit ff94787d86
9 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,8 @@ void audio_convert_float_to_s16_SSE2(int16_t *out,
void audio_convert_s16_to_float_altivec(float *out,
const int16_t *in, size_t samples, float gain)
{
const vector float gain_vec = vec_splats(gain);
const vector float zero_vec = vec_splats(0.0f);
const vector float gain_vec = vec_splat((vector float)gain, 0);
const vector float zero_vec = vec_splat((vector float)0.0f, 0);
// Unaligned loads/store is a bit expensive, so we optimize for the good path (very likely).
if (((uintptr_t)out & 15) + ((uintptr_t)in & 15) == 0)
{