ref: daceb93901a630ff1b6a0a02da171195d5fcde3f
parent: 3e5c46259ac3a65720ff99cc546833e753e28f58
author: menno <menno>
date: Mon Jun 17 14:14:35 EDT 2002
Fixes for 960 sample transform
--- a/libfaad/filtbank.c
+++ b/libfaad/filtbank.c
@@ -16,7 +16,7 @@
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**
-** $Id: filtbank.c,v 1.9 2002/06/13 11:03:27 menno Exp $
+** $Id: filtbank.c,v 1.10 2002/06/17 18:14:35 menno Exp $
**/
#include "common.h"
@@ -93,14 +93,11 @@
{
int16_t i;
- assert(vlen % 16 == 0);
+ assert(vlen % 4 == 0);
- for (i = vlen/16-1; i >= 0; --i)
+ for (i = vlen/4-1; i >= 0; --i)
{
*dest++ = *src++; *dest++ = *src++; *dest++ = *src++; *dest++ = *src++;
- *dest++ = *src++; *dest++ = *src++; *dest++ = *src++; *dest++ = *src++;
- *dest++ = *src++; *dest++ = *src++; *dest++ = *src++; *dest++ = *src++;
- *dest++ = *src++; *dest++ = *src++; *dest++ = *src++; *dest++ = *src++;
}
}
@@ -108,14 +105,11 @@
{
int16_t i;
- assert(vlen % 16 == 0);
+ assert(vlen % 4 == 0);
- for (i = vlen/16-1; i >= 0; --i)
+ for (i = vlen/4-1; i >= 0; --i)
{
*dest-- = 0; *dest-- = 0; *dest-- = 0; *dest-- = 0;
- *dest-- = 0; *dest-- = 0; *dest-- = 0; *dest-- = 0;
- *dest-- = 0; *dest-- = 0; *dest-- = 0; *dest-- = 0;
- *dest-- = 0; *dest-- = 0; *dest-- = 0; *dest-- = 0;
}
}
@@ -123,18 +117,12 @@
{
int16_t i;
- assert(vlen % 16 == 0);
+ assert(vlen % 4 == 0);
- for (i = vlen/16-1; i >= 0 ; --i)
+ for (i = vlen/4-1; i >= 0 ; --i)
{
*dest++ = MUL(*src1++, *src2++); *dest++ = MUL(*src1++, *src2++);
*dest++ = MUL(*src1++, *src2++); *dest++ = MUL(*src1++, *src2++);
- *dest++ = MUL(*src1++, *src2++); *dest++ = MUL(*src1++, *src2++);
- *dest++ = MUL(*src1++, *src2++); *dest++ = MUL(*src1++, *src2++);
- *dest++ = MUL(*src1++, *src2++); *dest++ = MUL(*src1++, *src2++);
- *dest++ = MUL(*src1++, *src2++); *dest++ = MUL(*src1++, *src2++);
- *dest++ = MUL(*src1++, *src2++); *dest++ = MUL(*src1++, *src2++);
- *dest++ = MUL(*src1++, *src2++); *dest++ = MUL(*src1++, *src2++);
}
}
@@ -142,18 +130,12 @@
{
int16_t i;
- assert(vlen % 16 == 0);
+ assert(vlen % 4 == 0);
- for (i = vlen/16-1; i >= 0 ; --i)
+ for (i = vlen/4-1; i >= 0 ; --i)
{
*dest++ = MUL(*src1++, *src2--); *dest++ = MUL(*src1++, *src2--);
*dest++ = MUL(*src1++, *src2--); *dest++ = MUL(*src1++, *src2--);
- *dest++ = MUL(*src1++, *src2--); *dest++ = MUL(*src1++, *src2--);
- *dest++ = MUL(*src1++, *src2--); *dest++ = MUL(*src1++, *src2--);
- *dest++ = MUL(*src1++, *src2--); *dest++ = MUL(*src1++, *src2--);
- *dest++ = MUL(*src1++, *src2--); *dest++ = MUL(*src1++, *src2--);
- *dest++ = MUL(*src1++, *src2--); *dest++ = MUL(*src1++, *src2--);
- *dest++ = MUL(*src1++, *src2--); *dest++ = MUL(*src1++, *src2--);
}
}
@@ -161,12 +143,13 @@
{
int16_t i;
- assert(vlen % 16 == 0);
+ assert(vlen % 4 == 0);
- for (i = vlen/16-1; i >= 0; --i)
+ for (i = vlen/4-1; i >= 0; --i)
{
*dest++ = *src1++ + *src2++; *dest++ = *src1++ + *src2++;
*dest++ = *src1++ + *src2++; *dest++ = *src1++ + *src2++;
+/*
*dest++ = *src1++ + *src2++; *dest++ = *src1++ + *src2++;
*dest++ = *src1++ + *src2++; *dest++ = *src1++ + *src2++;
*dest++ = *src1++ + *src2++; *dest++ = *src1++ + *src2++;
@@ -173,6 +156,7 @@
*dest++ = *src1++ + *src2++; *dest++ = *src1++ + *src2++;
*dest++ = *src1++ + *src2++; *dest++ = *src1++ + *src2++;
*dest++ = *src1++ + *src2++; *dest++ = *src1++ + *src2++;
+*/
}
}