Lines Matching defs:scale
51 int scale;
98 /* tests 38-61 test specific scale factors with 1000 divisor */
124 /* tests 62-85 test specific scale factors with 1024 divisor */
150 /* tests 86-99 test invalid specific scale values of < 0 or >= 7 with
163 /* Negative scale values are not handled well
178 /* tests for scale == 0, without autoscale */
179 /* tests 100-114 test scale 0 with 1000 divisor - print first N digits */
196 /* tests 115-126 test scale 0 with 1024 divisor - print first N digits */
215 /* Explicit scale, divisor 1024 */
233 /* Explicit scale, divisor 1000 */
262 /* 0 scale, divisor 1024 */
272 /* 0 scale, divisor 1000 */
341 /* Positive/negative, at maximum scale */
373 /* Positive/negative, at maximum scale */
380 /* HN_DECIMAL + binary + fixed scale cases not completed */
398 printf("\t-n\tInclude negative scale tests, which cause older libutil\n");
477 /* Format scale parameter for meaningful display */
479 str_scale(int scale) {
482 if (scale == HN_AUTOSCALE || scale == HN_GETSCALE)
483 return str_flags(scale, "");
487 snprintf(result, MAX_INT_STR_DIGITS, "%d", scale);
530 if (test_args[i].scale < 0 && ! includeNegScale) {
542 test_args[i].scale, test_args[i].flags);
544 scale_str = str_scale(test_args[i].scale);
551 "scale = %s, flags= %s.\n",
564 "buflen: %zu, scale = %s, flags= %s.\n",
576 "buflen = %zd, scale = %s, flags= %s.\n",