This is Unofficial EPICS BASE Doxygen Site
warshall.c File Reference
#include "defs.h"
+ Include dependency graph for warshall.c:

Go to the source code of this file.

Functions

void reflexive_transitive_closure (unsigned int *R, int n)
 

Function Documentation

void reflexive_transitive_closure ( unsigned int *  R,
int  n 
)

Definition at line 63 of file warshall.c.

64 {
65  int rowsize;
66  unsigned i;
67  unsigned *rp;
68  unsigned *relend;
69 
70  transitive_closure(R, n);
71 
72  rowsize = WORDSIZE(n);
73  relend = R + n*rowsize;
74 
75  i = 0;
76  rp = R;
77  while (rp < relend)
78  {
79  *rp |= (1 << i);
80  if (++i >= BITS_PER_WORD)
81  {
82  i = 0;
83  rp++;
84  }
85 
86  rp += rowsize;
87  }
88 }
int i
Definition: scan.c:967
#define BITS_PER_WORD
Definition: defs.h:33
#define WORDSIZE(n)
Definition: defs.h:34