v->type = width == 0 ? NUMERIC : ALPHA;
v->width = width;
v->fv = d->next_value_idx;
- v->nv = width_to_bytes(width) / MAX_SHORT_STRING ;
+ v->nv = width == 0 ? 1 : DIV_RND_UP (width, MAX_SHORT_STRING);
v->leave = dict_class_from_id (v->name) == DC_SCRATCH;
v->index = d->var_cnt;
mv_init (&v->miss, width);
return dict_get_compacted_value_cnt (d) < dict_get_next_value_idx (d);
}
-/* Returns true if a case for dictionary D would be smaller after
+/* Returns true if a case for dictionary D would change after
compacting, false otherwise. Compacting a case eliminates
"holes" between values and after the last value. Holes are
created by deleting variables (or by scratch variables).