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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [id-14.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
typedef struct {
2
  int n;
3
  float *a;
4
} bar;
5
 
6
float
7
foo (bar *b)
8
{
9
  float c, d;
10
  int j;
11
 
12
  for (j = 0; (j < b->n); j++)
13
    d += b->a[j];
14
 
15
  for (j = 0; (j < b->n); j++)
16
    c += b->a[j];
17
 
18
  return d;
19
}

powered by: WebSVN 2.1.0

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