Lines Matching refs:ptsz
52 ssize_t ptsz; /* actual part size */
133 static int grpinit(Group_t* grp, Vchobj_t* data, size_t dtsz, ssize_t ptsz)
135 static int grpinit(grp, data, dtsz, ptsz)
139 ssize_t ptsz;
145 if(ptsz >= (ssize_t)dtsz )
146 ptsz = (ssize_t)dtsz;
147 grp->ptsz = ptsz;
148 grp->npts = npts = (dtsz+ptsz-1)/ptsz; /* guaranteed >= 1 */
169 /* ptsz is such that a object frequency should fit in a byte */
170 for(d = 0, p = 0, i = 0; i < npts; i += 1, d += ptsz)
174 ADDFREQ(freq, Vchobj_t*, data+d, i == npts-1 ? dtsz-d : ptsz);
414 ssize_t ptsz, exp, lnz;
419 ptsz = (1 << exp) * lnz; /* ptsz here is >= 32 */
421 else ptsz = dtsz/(1<<10); /* ptsz here <= 64 */
423 ptsz = ptsz < 16 ? 16 : ptsz > 1024 ? 1024 : ptsz;
426 /**/DEBUG_PRINT(2,"ptsz=%d\n",ptsz);
427 return ptsz;
441 ssize_t *sz, npts, ntbl, ptsz, itbl;
463 ptsz = grpptsz(dtsz);
466 if(grpinit(grp, (Vcchar_t*)data, dtsz, ptsz) < 0)
474 /**/DEBUG_PRINT(2,"grphuff: dtsz=%d, ", dtsz); DEBUG_PRINT(2,"ptsz=%d, ", ptsz);
483 part = grp->part; npts = grp->npts; ptsz = grp->ptsz;
494 vcioputu(&io, ptsz); /* the part size used */
522 for(p = 0, i = 0; i < npts; i += 1, p += ptsz)
529 for(k = i == npts-1 ? dtsz-p : ptsz; k > 0; --k, ++dt)
559 ssize_t npts, ptsz, ntbl;
585 if((ptsz = (ssize_t)vciogetu(&io)) < 0) /* size of each part */
621 { dt = o + (k == npts-1 ? endo-o : ptsz); /* end of this part */