9 # define NSECTIONS NPROCESSORS
14 /* used anamorphically: section, nsections */
16 #define OUTER_PERSECTION_BASE(zero,n, sect) \
17 ((zero) + sect * (((n)-(zero) + NSECTIONS-1) / NSECTIONS))
18 #define OUTER(v,zero,n, precomp) \
19 for ((v)= OUTER_PERSECTION_BASE((zero),(n), section); \
21 (v) < OUTER_PERSECTION_BASE((zero),(n), section + 1) && (v) < (n); \
24 #define nsections NSECTIONS
26 typedef void Computation(const struct Vertices *vertices,
27 int section, void *secdata, void *gendata);
29 void inparallel(const struct Vertices *vertices,
30 Computation *separately,
32 size_t secdatasz, void *gendata);