mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
(PPC Altivec) turn vec_splats into vec_splat - PPC OSX (Leopard) doesn't
support vec_splats intrinsic
This commit is contained in:
parent
131ea08c26
commit
ff94787d86
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user