Cleanups - get rid of register keyword

This commit is contained in:
twinaphex 2020-10-07 20:33:20 +02:00
parent 2d9f243e0f
commit 6bb903f4dd
2 changed files with 10 additions and 11 deletions

View File

@ -3,7 +3,7 @@
//
static INLINE void DoMAC_AltiVec(float* wave, float* coeffs, int32 count, int32* accum_output)
{
register vector float acc0, acc1, acc2, acc3;
vector float acc0, acc1, acc2, acc3;
acc0 = (vector float)vec_splat_u8(0);
acc1 = acc0;
@ -15,7 +15,7 @@ static INLINE void DoMAC_AltiVec(float* wave, float* coeffs, int32 count, int32*
if(!((uint64)wave & 0xF))
{
register vector float w, c;
vector float w, c;
do
{
w = vec_ld(0, wave);
@ -40,17 +40,17 @@ static INLINE void DoMAC_AltiVec(float* wave, float* coeffs, int32 count, int32*
}
else
{
register vector unsigned char lperm;
register vector float loado;
vector unsigned char lperm;
vector float loado;
lperm = vec_lvsl(0, wave);
loado = vec_ld(0, wave);
do
{
register vector float tl;
register vector float w;
register vector float c;
vector float tl;
vector float w;
vector float c;
tl = vec_ld(15 + 0, wave);
w = vec_perm(loado, tl, lperm);

View File

@ -3,8 +3,7 @@
//
static INLINE void DoMAC_NEON(float* wave, float* coeffs, int32 count, int32* accum_output)
{
register float32x4_t acc0, acc1, acc2, acc3;
float32x4_t acc0, acc1, acc2, acc3;
acc0 = acc1 = acc2 = acc3 = vdupq_n_f32(0);
count >>= 4;
@ -22,8 +21,8 @@ static INLINE void DoMAC_NEON(float* wave, float* coeffs, int32 count, int32* ac
//
//
//
register float32x4_t sum4;
register float32x2_t sum2;
float32x4_t sum4;
float32x2_t sum2;
sum4 = vaddq_f32(vaddq_f32(acc0, acc1), vaddq_f32(acc2, acc3));
sum2 = vadd_f32(vget_high_f32(sum4), vget_low_f32(sum4));