OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [990523-1.c] - Rev 856

Go to most recent revision | Compare with Previous | Blame | View Log

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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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