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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [appendix-a/] [a.13.1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
int dequeue (float *a);
4
void work (int i, float *a);
5
void
6
a13 (float *x, float *y)
7
{
8
  int ix_next, iy_next;
9
#pragma omp parallel shared(x, y) private(ix_next, iy_next)
10
  {
11
#pragma omp critical (xaxis)
12
    ix_next = dequeue (x);
13
    work (ix_next, x);
14
#pragma omp critical (yaxis)
15
    iy_next = dequeue (y);
16
    work (iy_next, y);
17
  }
18
}

powered by: WebSVN 2.1.0

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