reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #define N 10 void foo(float A[restrict], double B[restrict], char C[restrict], int D[restrict], long E[restrict]) { for (long i = 0; i < N; i++) A[i] += B[i] + C[i] + D[i] + E[i]; } int main() { float A[N]; double B[N]; char C[N]; int D[N]; long E[N]; for (long i = 0; i < N; i++) { __sync_synchronize(); A[i] = B[i] = C[i] = D[i] = E[i] = 42; } foo(A, B, C, D, E); return A[8]; } |