/illumos-gate/usr/src/cmd/bc/ |
H A D | lib.b.data | 32 scale = 20 38 t = scale 39 scale = t + .434*x + 1 67 scale = t 84 z = 1-10^scale 88 t = scale 91 scale = scale + scale(x) - length(x) + 1 92 s=scale [all...] |
/illumos-gate/usr/src/cmd/prctl/ |
H A D | utils.h | 92 * scale: pointer to scale_t to describe scaling modifiers and scales 118 scale_t *scale, char *unit, int flags); 136 * scale: pointer to scale_t to describe modifiers and scales 152 scale_t *scale, char *unit, int flags); 173 * scale: pointer to scale_t to describe modifiers and scales 201 scale_t *scale, char *unit, int flags); 210 scale_t *scale, char *unit, int flags); 216 * to the same scale and width as the scaled strings. If the resultant string 219 * minwidth: minimum number width to scale string and number to for 224 scale_t *scale, cha [all...] |
H A D | utils.c | 107 scale_t *scale, char *unit, int flags) { 117 char **modifiers = scale->modifers; 118 uint64_t *scales = scale->scales; 261 scale_t *scale, char *unit, int flags) { 269 char **modifiers = scale->modifers; 270 uint64_t *scales = scale->scales; 272 /* don't scale if there is no reason to */ 348 scale_t *scale, char *unit, int flags) { 354 scale, unit, flags); 360 scale, uni 104 scaledtouint64(char *scaledin, uint64_t *uint64out, int *widthout, char **modifierout, char **unitout, scale_t *scale, char *unit, int flags) argument 259 uint64toscaled(uint64_t uint64in, int widthin, char *maxmodifierin, char *scaledout, int *widthout, char **modifierout, scale_t *scale, char *unit, int flags) argument 346 scaledtoscaled(char *scaledin, int widthin, char *maxmodifierin, char *scaledout, int *widthout, char **modifierout, scale_t *scale, char *unit, int flags) argument 366 scaledeqscaled(char *scaled1, char *scaled2, scale_t *scale, char *unit, int flags) argument 455 scaledequint64(char *scaled, uint64_t uint64, int minwidth, scale_t *scale, char *unit, int flags) argument [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | out.h | 40 double scale; member in struct:roffsu 55 (p)->scale = (v); } \ 60 (p)->scale = (v); } \
|
H A D | term_ascii.c | 238 r = su->scale; 241 r = su->scale * 240.0 / 2.54; 244 r = su->scale * 65536.0; 247 r = su->scale * 240.0; 250 r = su->scale * 0.24; 254 r = su->scale * 40.0; 257 r = su->scale * 10.0 / 3.0; 261 r = su->scale * 24.0;
|
H A D | term_ps.c | 44 (size_t)((double)(x) * (1000.0 / (double)(p)->ps->scale)) 48 ((double)(x) / (1000.0 / (double)(p)->ps->scale)) 75 size_t scale; /* font scaling factor */ member in struct:termp_ps 594 p->ps->scale = 11; 608 lineheight = PNT2AFM(p, ((double)p->ps->scale * 1.4)); 944 p->ps->scale); 965 (int)p->ps->lastf, p->ps->scale); 1255 fonts[(int)f].name, p->ps->scale); 1258 (int)f, p->ps->scale); 1291 r = PNT2AFM(p, su->scale * 72. [all...] |
H A D | term.c | 787 r = su->scale / 40.0; 790 r = su->scale * 6.0 / 2.54; 793 r = su->scale * 65536.0 / 40.0; 796 r = su->scale * 6.0; 799 r = su->scale * 0.006; 802 r = su->scale; 805 r = su->scale / 12.0; 809 r = su->scale * 0.6; 812 r = su->scale;
|
/illumos-gate/usr/src/lib/libshell/common/scripts/ |
H A D | termclock.sh | 139 draw_hand $(( 360.*(hand.val/hand.scale)-90. )) "${hand.ch}" ${hand.length} 146 draw_hand $(( 360.*(hand.val/hand.scale)-90. )) " " ${hand.length} 250 float scale 255 float scale 260 float scale 263 seconds.length=90 seconds.scale=60 seconds.ch=$"s" 264 minutes.length=75 minutes.scale=60 minutes.ch=$"m" 265 hours.length=50 hours.scale=12 hours.ch=$"h"
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtscale.c | 46 static const char scale[] = "bkMGTPE"; local 48 u = scale; 74 if (u > scale)
|
/illumos-gate/usr/src/cmd/swap/ |
H A D | swap.c | 89 unsigned long long unit_from, unsigned long long scale); 308 unsigned long long scale = 1024L; local 344 factor, scale)); 347 factor, scale)); 350 allocated + reserved, factor, scale)); 353 factor, scale)); 376 unsigned long long scale = 1024L; local 463 scale)); 468 DEV_BSIZE, scale)); 473 DEV_BSIZE, scale)); 498 number_to_scaled_string( numbuf_t buf, unsigned long long number, unsigned long long unit_from, unsigned long long scale) argument [all...] |
/illumos-gate/usr/src/cmd/du/ |
H A D | du.c | 533 * human readable format i.e. in the range 0 thru scale-1. 544 unsigned long long scale) /* 1024 (-h) or 1000 (-H) */ 556 * Convert number from unit_from to given scale (1024 or 1000) 557 * This means multiply number with unit_from and divide by scale. 561 * times scale in order to reduce rounding errors) 565 if (number >= 100L * scale) { 566 number = number / scale; 570 number = number / scale; 574 * Now we have number as a count of scale units. 578 while ((number >= scale) 540 number_to_scaled_string( numbuf_t buf, unsigned long long number, unsigned long long unit_from, unsigned long long scale) argument 600 unsigned long long scale = 1024L; local [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgstr.c | 846 * readable format i.e. in the range 0 thru scale-1. 850 * scale - [RO, *RO] - (unsigned long long) 851 * Value to scale the number into 860 pkgstrScaleNumericString(char *a_buf, unsigned long long scale) argument 871 assert(scale > (unsigned long long)0); 872 assert(scale <= (unsigned long long)1048576); 899 * Now have number as a count of scale units. 904 while ((number >= scale) && (*uom != 'E')) { 907 number = (number + (scale / 2)) / scale; [all...] |
/illumos-gate/usr/src/lib/libsum/common/ |
H A D | sumlib.c | 54 int scale; member in struct:Method_s 118 long_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument 130 if ((flags & SUM_SCALE) && ((n = scale) || (n = x->method->scale))) 331 sumprint(Sum_t* p, Sfio_t* sp, int flags, size_t scale) argument 333 return (*p->method->print)(p, sp, flags, scale);
|
/illumos-gate/usr/src/cmd/stat/arcstat/ |
H A D | arcstat.pl | 228 # Pretty print num. Arguments are width, scale, and num 232 my $scale = $_[1]; 237 if ($scale == -1) { #special case for date field 243 while ($num > $scale and $index < 5) { 245 $num = $num/$scale; 250 if (($save / $scale) < 10) {
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfhdr.h | 1068 #define SFDIGIT(v,scale,digit) \ 1069 { if(v < 5*scale) \ 1070 if(v < 2*scale) \ 1071 if(v < 1*scale) \ 1073 else { digit = '1'; v -= 1*scale; } \ 1074 else if(v < 3*scale) \ 1075 { digit = '2'; v -= 2*scale; } \ 1076 else if(v < 4*scale) \ 1077 { digit = '3'; v -= 3*scale; } \ 1078 else { digit = '4'; v -= 4*scale; } \ [all...] |
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | machclock.h | 54 * Instead, consumers read %tick and scale it by the current stick/tick ratio. 140 #define GET_HRTIME(base, now, nslt, scale, scr, hrlock, gnt1, gnt2) \ 143 lduw [scr + %lo(nsec_scale)], scale; /* tick-to-ns factor */ \ 152 NATIVE_TIME_TO_NSEC_SCALE(nslt, scale, gnt1, NSEC_SHIFT); \
|
/illumos-gate/usr/src/lib/libeti/menu/ |
H A D | Makefile.com | 57 scale.o \
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | mon.c | 196 uint_t scale; local 333 * scale is a 16 bit fixed point fraction with the decimal 339 scale = (uint_t)((temp * (long)0200000L) / text); 341 /* scale must be less than 1 */ 342 scale = 0xffff; 345 profil(buffer, bufsize, (ulong_t)lowpc, scale);
|
/illumos-gate/usr/src/cmd/lgrpinfo/ |
H A D | lgrpinfo.pl | 674 my $scale = KB; 684 while (($number >= $scale) && $uom ne 'E') { 687 $number /= $scale; 691 if ($save && (($save / $scale) < 10)) { 692 $result = sprintf("%2.1f", $save / $scale); 750 my $scale = $lgrp_kstats->{$i}->{"lgrp$i"}->{"loadscale"} || 752 $load->{$i} = sprintf (gettext("Load: %4.3g"), $lav / $scale);
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | timestamp.c | 129 #define TSC_CONVERT_AND_ADD(tsc, hrt, scale) { \ 131 (hrt) += mul32(_l[1], scale) << NSEC_SHIFT; \ 132 (hrt) += mul32(_l[0], scale) >> (32 - NSEC_SHIFT); \ 135 #define TSC_CONVERT(tsc, hrt, scale) { \ 137 (hrt) = mul32(_l[1], scale) << NSEC_SHIFT; \ 138 (hrt) += mul32(_l[0], scale) >> (32 - NSEC_SHIFT); \
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | ulimit.c | 47 char *scale; member in struct:rlimtab 153 prs_buff(_gettext(rlimtab[res].scale));
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | sadp.c | 911 long scale; local 931 scale = 1; 933 scale = at / (max2 * 2); 934 if (scale > 48) 935 scale = 48; 940 graph[ii] = (scale * 100 * dp->hdata[ii]) / at; 945 prthist(graph, maxrow, scale, (long) (max*100*scale/at)); 951 prthist(array, mrow, scale, gmax) 952 long array[], scale, gma [all...] |
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | machclock.h | 254 #define GET_HRTIME(base, now, nslt, scale, scr, hrlock, gnt1, gnt2, label) \ 257 lduw [scr + %lo(nsec_scale)], scale; /* tick-to-ns factor */ \ 267 NATIVE_TIME_TO_NSEC_SCALE(nslt, scale, gnt1, NSEC_SHIFT); \
|
/illumos-gate/usr/src/uts/sun4u/lw8/sys/ |
H A D | sgenv_impl.h | 99 #define TYPE_VALUE(value_macro, scale) { \ 103 scale \ 122 uint32_t scale; member in struct:type_value
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | cksum.c | 53 "[B:scale?Block count scale (bytes per block) override for methods that" 54 " include size in the output. The default is method specific.]#[scale]" 100 "[r:bsd?Equivalent to \b--method=bsd --scale=512\b for compatibility with" 131 size_t scale; /* scale override */ member in struct:State_s 233 sumprint(state->sum, op, state->flags|SUM_SCALE, state->scale); 473 state.scale = opt_info.num; 490 state.scale = 512; 627 sumprint(state.sum, sfstdout, state.flags|SUM_TOTAL|SUM_SCALE, state.scale); [all...] |