Searched defs:scale (Results 1 - 25 of 38) sorted by relevance

12

/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtscale.c46 static const char scale[] = "bkMGTPE"; local
48 u = scale;
74 if (u > scale)
/illumos-gate/usr/src/cmd/sh/
H A Dulimit.c47 char *scale; member in struct:rlimtab
153 prs_buff(_gettext(rlimtab[res].scale));
/illumos-gate/usr/src/cmd/mandoc/
H A Dout.h40 double scale; member in struct:roffsu
55 (p)->scale = (v); } \
60 (p)->scale = (v); } \
H A Dterm_ps.c44 (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...]
/illumos-gate/usr/src/lib/libsum/common/
H A Dsum-ast4.c100 ast4_print(Sum_t* p, Sfio_t* sp, int flags, size_t scale) argument
H A Dsum-sha1.c321 sha1_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument
H A Dsumlib.c54 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);
H A Dsum-md5.c353 md5_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument
H A Dsum-lmd.c80 lmd_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument
H A Dsum-sha2.c793 sha256_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument
1155 sha512_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument
1224 sha384_print(Sum_t* p, Sfio_t* sp, register int flags, size_t scale) argument
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgstr.c846 * 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/libc/port/gen/
H A Dmon.c196 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/lib/libcmd/common/
H A Dcksum.c53 "[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...]
/illumos-gate/usr/src/cmd/prctl/
H A Dutils.c107 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/du/
H A Ddu.c533 * 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/cmd/swap/
H A Dswap.c89 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/lib/libast/common/sfio/
H A Dsfvprintf.c109 int scale; local
226 scale = 0;
686 if(scale)
925 scale = 1024;
937 scale = 1000;
963 if(scale)
964 { sp = fmtscale(lv, scale);
1023 if(scale)
1024 { sp = fmtscale(v, scale);
/illumos-gate/usr/src/uts/sun4u/lw8/sys/
H A Dsgenv_impl.h99 #define TYPE_VALUE(value_macro, scale) { \
103 scale \
122 uint32_t scale; member in struct:type_value
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dutil.c585 LONGDOUBLE_TYPE scale = 1.0; local
597 while( eval>=64 ){ scale *= 1.0e+64; eval -= 64; }
598 while( eval>=16 ){ scale *= 1.0e+16; eval -= 16; }
599 while( eval>=4 ){ scale *= 1.0e+4; eval -= 4; }
600 while( eval>=1 ){ scale *= 1.0e+1; eval -= 1; }
602 v1 /= scale;
604 v1 *= scale;
/illumos-gate/usr/src/uts/common/pcmcia/cis/
H A Dcis_handlers.c668 * scale factors. Each scale factor has
1163 * used as a power-of-10 scale factor. We only allow
1164 * a maximum scale factor of 10^16.
1178 int scale = 1, first; local
1201 scale *= 10;
1204 speed = scale * CISTPL_DEVSPEED_MAN(mantisa) *
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/
H A Dunix.c771 uint64_t scale; local
812 scale = (uint64_t)nsec_scale;
814 hrt = ((uint64_t)tscp[1] * scale) << NSEC_SHIFT;
815 hrt += ((uint64_t)tscp[0] * scale) >> (32 - NSEC_SHIFT);
954 "scale an unscaled high-res time", scalehrtime_cmd },
/illumos-gate/usr/src/cmd/dc/
H A Ddc.c456 error(gettext("invalid scale factor\n"));
463 error(gettext("scale factor is too large\n"));
1299 /* if not base 10, then scale fractional input to precision */
1310 q = scale(p, dpct);
1497 int sc; /* scale */
1512 sc = sbackc(hptr); /* read scale off end of blk */
1945 scale(struct blk *p, int n) function
/illumos-gate/usr/src/cmd/fm/fmstat/common/
H A Dfmstat.c191 const uint64_t scale = 1024; local
199 while (size >= scale && up < (units + sizeof (units) - 2)) {
202 size = (size + (scale / 2)) / scale;
209 if (osize != 0 && (osize / scale) < 10)
210 (void) snprintf(buf, len, "%.1f%c", (float)osize / scale, *up);
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dgprof.h310 double scale; /* scale factor converting samples to pc */ variable
311 /* values: each sample covers scale bytes */
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_nx.c877 uint32_t scale, shift_amount, p3p, startword; local
901 scale = 2;
908 scale = 1;
916 (i << shift_amount), &word[i * scale], 8)) {
972 temp = (uint32_t)(word[i * scale] & 0xffffffff);
974 temp = (uint32_t)((word[i * scale] >> 32) & 0xffffffff);
977 temp = (uint32_t)(word[i * scale + 1] & 0xffffffff);
980 temp = (uint32_t)((word[i * scale + 1] >> 32) &

Completed in 111 milliseconds

12