Define MixHrtf directly instead of through a SUFFIX macro

This commit is contained in:
Chris Robinson 2015-08-15 01:37:46 -07:00
parent f6e52debb5
commit d5ab883da2
4 changed files with 6 additions and 19 deletions

View File

@ -101,9 +101,9 @@ static inline void ApplyCoeffs(ALuint Offset, ALfloat (*restrict Values)[2],
}
}
#define SUFFIX C
#define MixHrtf MixHrtf_C
#include "mixer_inc.c"
#undef SUFFIX
#undef MixHrtf
void Mix_C(const ALfloat *data, ALuint OutChans, ALfloat (*restrict OutBuffer)[BUFFERSIZE],

View File

@ -8,12 +8,6 @@
#include "align.h"
#define REAL_MERGE(a,b) a##b
#define MERGE(a,b) REAL_MERGE(a,b)
#define MixHrtf MERGE(MixHrtf_,SUFFIX)
static inline void SetupCoeffs(ALfloat (*restrict OutCoeffs)[2],
const HrtfParams *hrtfparams,
ALuint IrSize, ALuint Counter);
@ -83,9 +77,3 @@ void MixHrtf(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
OutPos++;
}
}
#undef MixHrtf
#undef MERGE
#undef REAL_MERGE

View File

@ -88,10 +88,9 @@ static inline void ApplyCoeffs(ALuint Offset, ALfloat (*restrict Values)[2],
}
}
#define SUFFIX Neon
#define MixHrtf MixHrtf_Neon
#include "mixer_inc.c"
#undef SUFFIX
#undef MixHrtf
void Mix_Neon(const ALfloat *data, ALuint OutChans, ALfloat (*restrict OutBuffer)[BUFFERSIZE],

View File

@ -143,9 +143,9 @@ static inline void ApplyCoeffs(ALuint Offset, ALfloat (*restrict Values)[2],
}
}
#define SUFFIX SSE
#define MixHrtf MixHrtf_SSE
#include "mixer_inc.c"
#undef SUFFIX
#undef MixHrtf
void Mix_SSE(const ALfloat *data, ALuint OutChans, ALfloat (*restrict OutBuffer)[BUFFERSIZE],