Searched refs:scale (Results 1 - 25 of 110) sorted by relevance

12345

/src/lib/libm/complex/
H A Dcsqrt.c39 double x, y, r, t, scale; local in function:csqrt
76 scale = 2.0;
81 scale = 7.450580596923828125e-9; /* 2^-27 */
85 scale = 0.5;
92 r = scale * fabs((0.5 * y) / t );
93 t *= scale;
96 t = scale * fabs((0.5 * y) / r);
97 r *= scale;
H A Dcsqrtf.c39 float x, y, r, t, scale; local in function:csqrtf
75 scale = 2.0f;
80 scale = 1.220703125e-4f; /* 2^-13 */
84 scale = 0.5f;
91 r = scale * fabsf((0.5f * y) / t);
92 t *= scale;
95 t = scale * fabsf((0.5f * y) / r);
96 r *= scale;
H A Dcsqrtl.c60 bool scale; local in function:csqrtl
95 scale = true;
97 scale = false;
110 if (scale)
/src/lib/libc/gen/
H A Dhumanize_number.c48 const char *suffix, int scale, int flags)
57 _DIAGASSERT(scale >= 0);
81 #define SCALE2PREFIX(scale) (&prefixes[(scale) << 1])
84 if (scale < 0 || (scale > maxscale &&
85 (scale & (HN_AUTOSCALE | HN_GETSCALE)) == 0))
126 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) {
149 if (scale & HN_GETSCALE) {
155 * we already know scale <
47 humanize_number(char * buf,size_t len,int64_t bytes,const char * suffix,int scale,int flags) argument
[all...]
/src/usr.bin/dc/
H A Dbcode.c43 u_int scale; member in struct:bmachine
267 return bmachine.scale;
318 (void)fprintf(stderr, " %s (%u)\n" , p, n->scale);
392 if (n->scale == 0 && f != NULL)
394 else if (n->scale < sizeof(factors)/sizeof(factors[0])) {
395 rem = BN_div_word(i, factors[n->scale]);
410 bn_check(BN_set_word(p, n->scale));
422 scale_number(n->number, (int)(s - n->scale));
423 n->scale = s;
578 bn_check(BN_set_word(n->number, bmachine.scale));
586 u_long scale; local in function:set_scale
674 u_int scale = 0; local in function:push_scale
1007 bmul_number(struct number * r,struct number * a,struct number * b,u_int scale) argument
1054 u_int scale; local in function:bdiv
1091 u_int scale; local in function:bmod
1128 u_int scale; local in function:bdivmod
1291 u_int scale, onecount; local in function:bsqrt
1461 u_int scale; local in function:compare_numbers
[all...]
H A Dmem.c36 n->scale = 0;
56 n->scale = a->scale;
H A Dbcode.h25 u_int scale; member in struct:number
97 struct number *, u_int scale);
H A Dinout.c213 n->scale++;
224 scale_number(n->number, (int)n->scale);
225 for (i = 0; i < n->scale; i++)
305 fract_part->scale = b->scale;
332 if (b->scale > 0) {
345 scale_number(stop, (int)b->scale);
360 int_part->scale = 0;
361 normalize(int_part, fract_part->scale);
/src/usr.bin/systat/
H A Dconvtbl.c61 uintmax_t scale; member in struct:convtbl
67 /* mul, scale, str, name */
85 get_tbl_ptr(const uintmax_t size, const int scale) argument
91 idx = scale < SC_AUTO ? scale : SC_AUTO;
108 convert(const uintmax_t size, const int scale) argument
112 tp = get_tbl_ptr(size, scale);
113 return ((double)size * tp->mul / tp->scale);
118 get_string(const uintmax_t size, const int scale) argument
122 tp = get_tbl_ptr(size, scale);
[all...]
H A Difcmds.c56 int scale; local in function:ifcmd
58 if (prefix(cmd, "scale")) {
59 if ((scale = get_scale(args)) != -1)
60 curscale = scale;
64 addstr("what scale? ");
H A Dconvtbl.h42 enum scale { enum
/src/sbin/nvmectl/
H A Dutil.c88 unit_string(BIGNUM *bn, const char *unit, long scale, char *out, size_t len) argument
98 if (scale > 1) {
103 tmp[0] = (scale >> 24) & 0xff;
104 tmp[1] = (scale >> 16) & 0xff;
105 tmp[2] = (scale >> 8) & 0xff;
106 tmp[3] = scale & 0xff;
124 const char *unit, long scale)
166 unit_string(bn, unit, scale, buf2, sizeof(buf2));
123 print_bignum1(const char * title,uint64_t v[2],const char * suffix,const char * unit,long scale) argument
H A Dhumanize_bignum.c103 int scale, int flags)
137 #define SCALE2PREFIX(scale) (&prefixes[(scale) << 1])
140 if ((size_t)scale >= maxscale &&
141 (scale & (HN_AUTOSCALE | HN_GETSCALE)) == 0)
177 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) {
203 if (scale & HN_GETSCALE) {
208 for (i = 0; i < (size_t)scale && i < maxscale; i++) {
102 humanize_bignum(char * buf,size_t len,const BIGNUM * bytes,const char * suffix,int scale,int flags) argument
/src/sys/arch/m68k/fpe/
H A Dfpu_fscale.c58 int scale, sign, exp; local in function:fpu_emul_fscale
66 scale = sig = 0;
94 scale = buf[0];
176 scale = buf[0];
179 scale = buf[0] & 0xffff;
180 if (scale & 0x8000) {
181 scale |= 0xffff0000;
185 scale = buf[0] & 0xff;
186 if (scale & 0x80) {
187 scale |
[all...]
/src/sys/external/bsd/compiler_rt/dist/lib/builtins/
H A Ddivsf3.c31 int scale = 0; local in function:__divsf3
64 // normal number. Renormalize one or both of a and b, and set scale to
66 if (aAbs < implicitBit) scale += normalize(&aSignificand);
67 if (bAbs < implicitBit) scale -= normalize(&bSignificand);
75 int quotientExponent = aExponent - bExponent + scale;
H A Ddivdf3.c31 int scale = 0; local in function:__divdf3
64 // normal number. Renormalize one or both of a and b, and set scale to
66 if (aAbs < implicitBit) scale += normalize(&aSignificand);
67 if (bAbs < implicitBit) scale -= normalize(&bSignificand);
75 int quotientExponent = aExponent - bExponent + scale;
H A Ddivtf3.c31 int scale = 0; local in function:__divtf3
64 // normal number. Renormalize one or both of a and b, and set scale to
66 if (aAbs < implicitBit) scale += normalize(&aSignificand);
67 if (bAbs < implicitBit) scale -= normalize(&bSignificand);
75 int quotientExponent = aExponent - bExponent + scale;
/src/sys/dev/wscons/
H A Dmra.c47 int n, int scale,
106 A = (S1Y * S22 - S2Y * S12) * scale / M;
107 B = (S2Y * S11 - S1Y * S12) * scale / M;
108 C = Ya - (A * X1a + B * X2a) / scale;
45 mra_Y_AX1_BX2_C(const int * y,int ys,const int * x1,int x1s,const int * x2,int x2s,int n,int scale,int * a,int * b,int * c) argument
/src/usr.bin/vmstat/
H A Ddrvstats.h48 int *scale; /* Sticky scale for bytes */ member in struct:_drive
/src/sbin/dmesg/
H A Ddmesg.c134 pnsec(long nsec, long fsec, int scale) argument
136 if (scale > 6)
139 printf("%*.*ld%.*s", scale, scale, fsec, 6 - scale, "000000");
159 int scale; local in function:main
268 scale = 0;
287 scale++; \
312 scale = 0;
348 for (nsec = fsec, j = 9 - scale;
[all...]
/src/usr.sbin/tprof/
H A Dtprof.c279 char *p, *event = NULL, *opt = NULL, *scale = NULL; local in function:tprof_parse_event
296 scale = strchr(p, ',');
297 if (scale != NULL)
298 *scale++ = '\0';
325 if (scale != NULL) {
326 if (*scale == '=') {
327 scale++;
328 n = strtoull(scale, &p, 0);
337 if (strncasecmp("0x", scale, 2) == 0)
338 d = strtol(scale,
[all...]
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc/hw/
H A Dipp.h56 uint16_t scale; member in struct:ipp_prescale_params
/src/lib/libc/gdtoa/
H A Dstrtod.c75 (x, scale) U *x; int scale; variable in typeref:typename:int
77 (U *x, int scale)
85 if (!scale || (i = 2*P + 1 - ((word0(x) & Exp_mask) >> Exp_shift)) <= 0)
97 int scale; local in function:_int_strtod_l
433 scale = 0;
522 scale = 2*P;
526 if (scale && (j = 2*P + 1 - ((word0(&rv) & Exp_mask)
610 j = bbe - scale;
640 bd2 += scale;
[all...]
/src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv50/
H A Dnouveau_dispnv50_ovly507e.c54 evo_data(push, asyw->scale.sy << 16 | asyw->scale.sx);
55 evo_data(push, asyw->scale.sh << 16 | asyw->scale.sw);
56 evo_data(push, asyw->scale.dw);
/src/sys/arch/arm/amlogic/
H A Dmeson_genfb.c418 const u_int scale = sc->sc_scale; local in function:meson_genfb_scaler_config
419 const u_int dst_w = (width * scale) / 100;
420 const u_int dst_h = (height * scale) / 100;
423 const bool scale_p = scale != 100;
486 /* free scale enable */
521 u_int width = 0, height = 0, depth, flags, i, scale = 100; local in function:meson_genfb_init
570 prop_dictionary_get_uint32(cfg, "scale", &scale);
571 if (scale > 100) {
572 scale
623 int scale, oldscale, error; local in function:meson_genfb_scale_helper
[all...]

Completed in 43 milliseconds

12345