Lines Matching defs:grain
147 static int grain = ALIGNSZ;
345 * is just ->blksz/grain, with the first
363 maxfast = fastct * grain;
369 * round up to nearest multiple of grain
370 * code assumes grain is a multiple of MINHEAD
372 /* round up to grain */
373 nb = (nbytes + grain - 1) / grain * grain;
374 holdblk = holdhead[nb / grain];
399 holdhead[(nb-MINHEAD) / grain] =
411 holdhead[(nb-MINHEAD)/grain] =
432 holdhead[(nb-MINHEAD)/grain] = newhold;
676 offset = holdblk->blksz / grain;
883 * M_GRAIN Set grain to value. The sizes of all blocks
885 * up to the nearest multiple of grain. The default
886 * value of grain is the smallest number of bytes
890 * grain. Value must be greater than 0.
917 fastct = (value + grain - 1) / grain;
918 maxfast = grain*fastct;
933 /* round grain up to a multiple of ALIGNSZ */
934 grain = (value + ALIGNSZ - 1)/ALIGNSZ*ALIGNSZ;
937 fastct = (maxfast + grain - 1) / grain;
938 maxfast = grain * fastct;
1156 grain = ALIGNSZ;