File: reservoir-pingali1.c

package info (click to toggle)
isl 0.12.2-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,164 kB
  • ctags: 6,976
  • sloc: ansic: 86,111; sh: 11,923; python: 1,907; cpp: 593; makefile: 352; perl: 9
file content (7 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
for (int c1 = 1; c1 <= M; c1 += 1)
  for (int c3 = 1; c3 < 2 * N; c3 += 1) {
    for (int c5 = max(1, -N + c3); c5 < (c3 + 1) / 2; c5 += 1)
      S1(c1, c3 - c5, c5);
    if ((c3 - 1) % 2 == 0)
      S2(c1, (c3 + 1) / 2);
  }