/src/lib/libm/complex/ |
csqrt.c | 39 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;
|
csqrtf.c | 39 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;
|
csqrtl.c | 60 bool scale; local in function:csqrtl 91 /* Scale to avoid overflow. */ 95 scale = true; 97 scale = false; 110 if (scale)
|
/src/lib/libc/gen/ |
humanize_number.c | 48 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 <= maxscale, s [all...] |
/src/usr.bin/dc/ |
bcode.c | 43 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 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...] |
mem.c | 36 n->scale = 0; 56 n->scale = a->scale;
|
bcode.h | 25 u_int scale; member in struct:number 97 struct number *, u_int scale);
|
inout.c | 213 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/ |
convtbl.c | 61 uintmax_t scale; member in struct:convtbl 67 /* mul, scale, str, name */ 85 get_tbl_ptr(const uintmax_t size, const int scale) 91 idx = scale < SC_AUTO ? scale : SC_AUTO; 108 convert(const uintmax_t size, const int scale) 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) 122 tp = get_tbl_ptr(size, scale); [all...] |
ifcmds.c | 56 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? ");
|
convtbl.h | 42 enum scale { enum
|
/src/sbin/nvmectl/ |
util.c | 88 unit_string(BIGNUM *bn, const char *unit, long scale, char *out, size_t len) 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));
|
humanize_bignum.c | 103 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++) {
|
/src/sys/arch/m68k/fpe/ |
fpu_fscale.c | 58 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 |= 0xffffff00 [all...] |
/src/sys/dev/wscons/ |
mra.c | 47 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;
|
/src/sys/external/bsd/compiler_rt/dist/lib/builtins/ |
divsf3.c | 31 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;
|
divdf3.c | 31 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;
|
divtf3.c | 31 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/usr.bin/vmstat/ |
drvstats.h | 48 int *scale; /* Sticky scale for bytes */ member in struct:_drive
|
/src/sbin/dmesg/ |
dmesg.c | 134 pnsec(long nsec, long fsec, int scale) 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; --j >= 0; [all...] |
/src/usr.sbin/tprof/ |
tprof.c | 279 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, &p, 0) [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc/hw/ |
ipp.h | 56 uint16_t scale; member in struct:ipp_prescale_params
|
/src/lib/libc/gdtoa/ |
strtod.c | 75 (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/ |
nouveau_dispnv50_ovly507e.c | 54 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/ |
meson_genfb.c | 418 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 = 100 623 int scale, oldscale, error; local in function:meson_genfb_scale_helper [all...] |