Beginning of Example A.1.1.1c of OpenMP 2.5 standard document ---------
| 44 | namespace { |
| 45 | // Beginning of Example A.1.1.1c of OpenMP 2.5 standard document --------- |
| 46 | void a1(int n, float *a, float *b) |
| 47 | { int i; |
| 48 | for(i = 1; i < n; i++) |
| 49 | b[i] = (a[i] + a[i-1]) / 2.0f; |
| 50 | return; |
| 51 | } |
| 52 | // End of Example A.1.1.1c of OpenMP 2.5 standard document --------------- |
| 53 | struct start_arg { int n; float* a; float* b; }; |
| 54 | void* start_routine(void* arg_vptr) |