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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [lll.c] - Rev 826

Compare with Previous | Blame | View Log

 
byte_match_count2 (buf, n, xm, m1, m2, m3, m4)
     unsigned *buf;
     unsigned n;
     unsigned xm;
     unsigned m1, m2, m3, m4;
{
  unsigned w, cnt = 0;
  unsigned *bp;
 
  n /= 4;
 
  bp = buf;
  while (bp < buf + n)
    {
      w = *bp++;
      w ^= xm;
      cnt += ((m1 & w) == 0);
      cnt += ((m2 & w) == 0);
      cnt += ((m3 & w) == 0);
      cnt += ((m4 & w) == 0);
 
      w = *bp++;
      w ^= xm;
      cnt += ((m1 & w) == 0);
      cnt += ((m2 & w) == 0);
      cnt += ((m3 & w) == 0);
      cnt += ((m4 & w) == 0);
 
      w = *bp++;
      w ^= xm;
      cnt += ((m1 & w) == 0);
      cnt += ((m2 & w) == 0);
      cnt += ((m3 & w) == 0);
      cnt += ((m4 & w) == 0);
 
      w = *bp++;
      w ^= xm;
      cnt += ((m1 & w) == 0);
      cnt += ((m2 & w) == 0);
      cnt += ((m3 & w) == 0);
      cnt += ((m4 & w) == 0);
    }
  return cnt;
}
 

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.