/external/bison/src/ |
relation.c | 132 /* NEDGES[I] -- total size of NEW_R[I]. */ 133 size_t *nedges = xcalloc (n, sizeof *nedges); local 147 ++nedges[r[i][j]]; 153 if (nedges[i] > 0) 155 sp = xnmalloc (nedges[i] + 1, sizeof *sp); 156 sp[nedges[i]] = END_NODE; 168 free (nedges);
|
lalr.c | 163 goto_number nedges = 0; local 182 edge[nedges++] = map_goto (stateno, sym); 185 if (nedges == 0) 189 reads[i] = xnmalloc (nedges + 1, sizeof reads[i][0]); 190 memcpy (reads[i], edge, nedges * sizeof edge[0]); 191 reads[i][nedges] = END_NODE; 192 nedges = 0; 229 int nedges = 0; local 263 edge[nedges++] = map_goto (states1[--length], 271 if (nedges == 0 [all...] |
ielr.c | 258 goto_number nedges = edge_counts[i]; local 268 edge_array[nedges++] = map_goto (to_state[i], sym); 271 if (nedges - edge_counts[i]) 274 xnrealloc ((*edgesp)[i], nedges + 1, sizeof *(*edgesp)[i]); 276 (nedges - edge_counts[i]) * sizeof *(*edgesp)[i]); 277 (*edgesp)[i][nedges] = END_NODE; [all...] |
/external/opencv/cv/src/ |
cvstereogc.cpp | 596 static inline void icvAddEdge( GCVtx *x, GCVtx* y, GCEdge* edgeBuf, int nedges, int w, int rw ) 598 GCEdge *xy = edgeBuf + nedges, *yx = xy + 1; 604 x->first = nedges; 609 y->first = nedges+1; 624 GCEdge* edgeBuf, int& nedges ) 635 icvAddEdge( x, y, edgeBuf, nedges, 0, w ); 636 nedges += 2; 645 icvAddEdge( x, y, edgeBuf, nedges, w, 0 ); 646 nedges += 2; 654 icvAddEdge( x, y, edgeBuf, nedges, B - A, C - D ) 667 int nvtx = 0, nedges = 2; local [all...] |