Changeset View
Changeset View
Standalone View
Standalone View
contrib/byacc/warshall.c
Show All 22 Lines | transitive_closure(unsigned *R, int n) | ||||
rowi = R; | rowi = R; | ||||
while (rowi < relend) | while (rowi < relend) | ||||
{ | { | ||||
ccol = cword; | ccol = cword; | ||||
rowj = R; | rowj = R; | ||||
while (rowj < relend) | while (rowj < relend) | ||||
{ | { | ||||
if (*ccol & (unsigned)(1 << i)) | if (*ccol & (1u << i)) | ||||
{ | { | ||||
rp = rowi; | rp = rowi; | ||||
rend = rowj + rowsize; | rend = rowj + rowsize; | ||||
while (rowj < rend) | while (rowj < rend) | ||||
*rowj++ |= *rp++; | *rowj++ |= *rp++; | ||||
} | } | ||||
else | else | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |