Searched refs:hd (Results 1 - 4 of 4) sorted by relevance

/ast/src/lib/libvcodex/Vcmisc/
H A Dvcbwt.c38 ssize_t hd, sp, sz, *idx, *endidx; local
56 hd = vcsizeu(sp); /* encoding size of the 0th position after sorting */
58 if(!(output = vcbuffer(vc, NIL(Vcchar_t*), sz, hd)) )
72 if(vcrecode(vc, &output, &sz, hd, 0) < 0 )
78 output -= hd;
79 vcioinit(&io, output, hd);
81 rv = hd+sz;
H A Dvcrle.c368 ssize_t k, hd, sz, outsz; local
380 hd = vcsizeu(size);
382 hd += 2; /* for the two run bytes */
397 if(!(output = space = vcbuffer(vc, NIL(Vcchar_t*), outsz+128, hd)) )
418 output = vcbuffer(vc, NIL(Vcchar_t*), sz, hd);
441 if(vcrecode(vc, &output, &sz, hd, 0) < 0 )
448 output -= hd; sz += hd;
449 vcioinit(&io, output, hd);
H A Dvctranspose.c254 ssize_t hd, sz, size;
259 hd = vcsizeu(size) + (trans->type == TR_PLAIN ? 0 : vcsizeu(ncols));
260 if(!(output = vcbuffer(vc, NIL(Vcchar_t*), 2*(size + vcsizeu(size)), hd)) )
323 if((sz = _vcrle2coder(vc->coder,hd,chr,c,run,r,&output,sz)) < 0)
327 { vcioinit(&io, output, 2*(size+hd));
335 output -= hd;
336 vcioinit(&io, output, hd);
341 if(!(output = vcbuffer(vc, output, sz+hd, -1)) )
345 return sz+hd;
/ast/src/lib/libvcodex/
H A Dvcsfxsort.c367 Grnode_t *hd, *tl, *nd; local
384 if(!(hd = grnode(gr, TYPECAST(Void_t*,y), 1)) )
392 !(e = gredge(gr, tl, hd, (Void_t*)0, 1)) )
401 hd = tl = NIL(Grnode_t*); /* first build the list of root nodes */
404 { if(!hd)
405 (hd = tl = nd)->link = NIL(Grnode_t*);
409 for(nd = hd; nd; nd = nd->link) /* top-sort */
486 Grnode_t *tl, *hd, *nd; local
494 if(!(hd = grnode(gr, TYPECAST(Void_t*,x), 1)) )
500 !(e = gredge(gr, tl, hd, (Void_
[all...]

Completed in 11 milliseconds