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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr42205-1.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-options "-O1 -ffast-math -floop-interchange" } */
2
 
3
int adler32(int adler, char *buf, int n)
4
{
5
  int sum = 0;
6
  do {
7
     adler += buf[0];
8
     sum += adler;
9
     adler += buf[1];
10
     sum += adler;
11
     adler += buf[2];
12
     sum += adler;
13
     adler += buf[3];
14
     sum += adler;
15
  } while (--n);
16
  return adler | (sum << 16);
17
}

powered by: WebSVN 2.1.0

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