OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [990523-1.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
extern float  decwin[512+32];
extern float  decwin[512+32];
 
 
int synth_1to1(float  *bandPtr,int channel,unsigned char *out,int *pnt)
int synth_1to1(float  *bandPtr,int channel,unsigned char *out,int *pnt)
{
{
  static const int step = 2;
  static const int step = 2;
  short *samples = (short *) (out+*pnt);
  short *samples = (short *) (out+*pnt);
 
 
  float  *b0;
  float  *b0;
  int clip = 0;
  int clip = 0;
  int bo1;
  int bo1;
 
 
  {
  {
    register int j;
    register int j;
    float  *window = decwin + 16 - bo1;
    float  *window = decwin + 16 - bo1;
    for (j=15;j;j--,b0-=0x20,window-=0x10,samples+=step)
    for (j=15;j;j--,b0-=0x20,window-=0x10,samples+=step)
    {
    {
      float  sum;
      float  sum;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
      sum -= *(--window) * *b0++;
 
 
      if( ( sum ) > 32767.0) *( samples ) = 0x7fff; ( clip )++;  ;
      if( ( sum ) > 32767.0) *( samples ) = 0x7fff; ( clip )++;  ;
    }
    }
  }
  }
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.