Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 144) sorted by relevance

123456

/dflybsd-src/usr.bin/bc/
H A Dbc.library44 scale = 20
50 t = scale
51 scale = 0
52 if (x > 0) scale = (0.435*x)/1
53 scale = scale + t + length(scale + t) + 1
81 scale = t
95 a = (1 - 10^scale)
99 t = scale
103 s = scale(x)
105 s = length(x)-scale(x)
[all …]
/dflybsd-src/usr.bin/dc/
H A Dbcode.c43 u_int scale; member
265 return bmachine.scale; in bmachine_scale()
316 fprintf(stderr, " %s (%u)\n" , p, n->scale); in pn()
390 if (n->scale == 0 && f != NULL) in split_number()
392 else if (n->scale < sizeof(factors)/sizeof(factors[0])) { in split_number()
393 rem = BN_div_word(i, factors[n->scale]); in split_number()
408 bn_check(BN_set_word(p, n->scale)); in split_number()
420 scale_number(n->number, s - n->scale); in normalize()
421 n->scale = s; in normalize()
564 bn_check(BN_set_word(n->number, bmachine.scale)); in get_scale()
[all …]
H A Dinout.c212 n->scale++; in readnumber()
299 fract_part->scale = b->scale; in printnumber()
326 if (b->scale > 0) { in printnumber()
337 scale_number(stop, b->scale); in printnumber()
352 int_part->scale = 0; in printnumber()
353 normalize(int_part, fract_part->scale); in printnumber()
H A Dmem.c36 n->scale = 0; in new_number()
56 n->scale = a->scale; in dup_number()
/dflybsd-src/contrib/openbsd_libm/src/
H A Ds_csqrtl.c68 long double x, y, r, t, scale; in csqrtl() local
98 scale = 2.0L; in csqrtl()
104 scale = 1.16415321826934814453125e-10; /* 2^-33 */ in csqrtl()
108 scale = 0.5L; in csqrtl()
115 r = scale * fabsl((0.5L * y) / t); in csqrtl()
116 t *= scale; in csqrtl()
120 t = scale * fabsl((0.5L * y) / r); in csqrtl()
121 r *= scale; in csqrtl()
H A Ds_csqrtf.c68 float x, y, r, t, scale; in csqrtf() local
101 scale = 2.0f; in csqrtf()
106 scale = 1.220703125e-4f; /* 2^-13 */ in csqrtf()
110 scale = 0.5f; in csqrtf()
117 r = scale * fabsf((0.5f * y) / t); in csqrtf()
118 t *= scale; in csqrtf()
122 t = scale * fabsf((0.5f * y) / r); in csqrtf()
123 r *= scale; in csqrtf()
H A Ds_csqrt.c69 double x, y, r, t, scale; in csqrt() local
103 scale = 2.0; in csqrt()
108 scale = 7.450580596923828125e-9; /* 2^-27 */ in csqrt()
112 scale = 0.5; in csqrt()
119 r = scale * fabs((0.5 * y) / t); in csqrt()
120 t *= scale; in csqrt()
124 t = scale * fabs( (0.5 * y) / r ); in csqrt()
125 r *= scale; in csqrt()
/dflybsd-src/usr.bin/systat/
H A Dconvtbl.c46 uintmax_t scale; member
72 get_tbl_ptr(const uintmax_t size, const int scale) in get_tbl_ptr() argument
78 idx = scale < SC_AUTOBIT ? scale : SC_AUTOBIT; in get_tbl_ptr()
97 convert(const uintmax_t size, const int scale) in convert() argument
101 tp = get_tbl_ptr(size, scale); in convert()
102 return ((double)size * tp->mul / tp->scale); in convert()
107 get_string(const uintmax_t size, const int scale) in get_string() argument
111 tp = get_tbl_ptr(size, scale); in get_string()
H A Difcmds.c40 int scale; in ifcmd() local
43 if ((scale = get_scale(args)) != -1) in ifcmd()
44 curscale = scale; in ifcmd()
/dflybsd-src/sys/sys/
H A Dkcollect.h88 #define KCOLLECT_SCALE(fmt, scale) ((fmt) | ((uint64_t)(scale) << 8)) argument
89 #define KCOLLECT_GETFMT(scale) ((char)(scale)) argument
90 #define KCOLLECT_GETSCALE(scale) ((scale) >> 8) argument
99 kcallback_t func, uint64_t scale);
/dflybsd-src/lib/libutil/
H A Dhumanize_number.c49 const char *suffix, int scale, int flags) in humanize_number() argument
60 if (scale < 0) in humanize_number()
62 else if (scale >= maxscale && in humanize_number()
63 ((scale & ~(HN_AUTOSCALE|HN_GETSCALE)) != 0)) in humanize_number()
114 #define SCALE2PREFIX(scale) (&prefixes[(scale) * 3]) in humanize_number() argument
136 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) { in humanize_number()
153 if (scale & HN_GETSCALE) in humanize_number()
156 for (i = 0; i < scale && i < maxscale; i++) { in humanize_number()
/dflybsd-src/contrib/gcc-4.7/gcc/
H A Dtree-affine.c75 aff_combination_scale (aff_tree *comb, double_int scale) in aff_combination_scale() argument
79 scale = double_int_ext_for_comb (scale, comb); in aff_combination_scale()
80 if (double_int_one_p (scale)) in aff_combination_scale()
83 if (double_int_zero_p (scale)) in aff_combination_scale()
90 = double_int_ext_for_comb (double_int_mul (scale, comb->offset), comb); in aff_combination_scale()
96 = double_int_ext_for_comb (double_int_mul (scale, comb->elts[i].coef), in aff_combination_scale()
115 comb->elts[comb->n].coef = scale; in aff_combination_scale()
122 double_int_to_tree (type, scale)); in aff_combination_scale()
129 aff_combination_add_elt (aff_tree *comb, tree elt, double_int scale) in aff_combination_add_elt() argument
134 scale = double_int_ext_for_comb (scale, comb); in aff_combination_add_elt()
[all …]
H A Dira-costs.c904 int scale = 1 + (recog_data.operand_type[i] == OP_INOUT); in record_reg_classes() local
909 (qq->mem_cost + op_cost_add) * scale); in record_reg_classes()
913 = MIN (pp_costs[k], (qq_costs[k] + op_cost_add) * scale); in record_reg_classes()
1026 enum rtx_code index_code, int scale) in record_address_regs() argument
1073 record_address_regs (mode, as, arg0, 0, PLUS, code1, scale); in record_address_regs()
1082 record_address_regs (mode, as, arg0, context, PLUS, code1, scale); in record_address_regs()
1084 record_address_regs (mode, as, arg1, context, PLUS, code0, scale); in record_address_regs()
1090 record_address_regs (mode, as, arg0, context, PLUS, code1, scale); in record_address_regs()
1094 record_address_regs (mode, as, arg0, 1, PLUS, code1, scale); in record_address_regs()
1105 PLUS, REG, scale); in record_address_regs()
[all …]
/dflybsd-src/contrib/gcc-4.7/gcc/config/i386/
H A Davx2intrin.h1226 _mm_i32gather_pd (double const *base, __m128i index, const int scale) in _mm_i32gather_pd() argument
1235 scale); in _mm_i32gather_pd()
1241 __m128d mask, const int scale) in _mm_mask_i32gather_pd() argument
1247 scale); in _mm_mask_i32gather_pd()
1252 _mm256_i32gather_pd (double const *base, __m128i index, const int scale) in _mm256_i32gather_pd() argument
1261 scale); in _mm256_i32gather_pd()
1267 __m128i index, __m256d mask, const int scale) in _mm256_mask_i32gather_pd() argument
1273 scale); in _mm256_mask_i32gather_pd()
1278 _mm_i64gather_pd (double const *base, __m128i index, const int scale) in _mm_i64gather_pd() argument
1287 scale); in _mm_i64gather_pd()
[all …]
/dflybsd-src/sys/kern/
H A Dkern_collect.c81 kcollect_register(int which, const char *id, kcallback_t func, uint64_t scale) in kcollect_register() argument
99 kcollect_scale.data[n] = scale; in kcollect_register()
184 kcollect_t scale; in sysctl_kcollect_data() local
219 scale = kcollect_scale; in sysctl_kcollect_data()
220 scale.ticks = ticks; in sysctl_kcollect_data()
221 scale.hz = hz; in sysctl_kcollect_data()
235 error = SYSCTL_OUT(req, &scale, sizeof(scale)); in sysctl_kcollect_data()
H A Dsubr_prof.c59 if (uap->scale > (1 << 16)) in sys_profil()
62 if (uap->scale == 0) { in sys_profil()
70 upp->pr_scale = uap->scale; in sys_profil()
/dflybsd-src/contrib/gcc-8.0/gcc/
H A Dtree-affine.c93 widest_int scale = wide_int_ext_for_comb (scale_in, comb->type); in aff_combination_scale() local
94 if (scale == 1) in aff_combination_scale()
97 if (scale == 0) in aff_combination_scale()
103 comb->offset = wide_int_ext_for_comb (scale * comb->offset, comb->type); in aff_combination_scale()
107 = wide_int_ext_for_comb (scale * comb->elts[i].coef, comb->type); in aff_combination_scale()
125 comb->elts[comb->n].coef = scale; in aff_combination_scale()
132 wide_int_to_tree (type, scale)); in aff_combination_scale()
144 widest_int scale = wide_int_ext_for_comb (scale_in, comb->type); in aff_combination_add_elt() local
145 if (scale == 0) in aff_combination_add_elt()
152 = wide_int_ext_for_comb (comb->elts[i].coef + scale, comb->type); in aff_combination_add_elt()
[all …]
/dflybsd-src/contrib/mdocml/
H A Dtbl_html.c54 if (su->scale < 0.0) in html_tbl_sulen()
59 return su->scale * 65536.0 / 24.0; in html_tbl_sulen()
61 return su->scale * 10.0; in html_tbl_sulen()
63 return su->scale * 10.0 / 2.54; in html_tbl_sulen()
66 return su->scale * 10.0 / 6.0; in html_tbl_sulen()
69 return su->scale; in html_tbl_sulen()
71 return su->scale * 10.0 / 6.0 / 12.0; in html_tbl_sulen()
73 return su->scale / 24.0; in html_tbl_sulen()
75 return su->scale / 100.0; in html_tbl_sulen()
H A Dterm_ascii.c267 r = su->scale; in ascii_hspan()
270 r = su->scale * 240.0 / 2.54; in ascii_hspan()
273 r = su->scale * 65536.0; in ascii_hspan()
276 r = su->scale * 240.0; in ascii_hspan()
279 r = su->scale * 0.24; in ascii_hspan()
283 r = su->scale * 40.0; in ascii_hspan()
286 r = su->scale * 10.0 / 3.0; in ascii_hspan()
290 r = su->scale * 24.0; in ascii_hspan()
H A Dterm_ps.c45 (size_t)((double)(x) * (1000.0 / (double)(p)->ps->scale))
49 ((double)(x) / (1000.0 / (double)(p)->ps->scale))
77 size_t scale; /* font scaling factor */ member
596 p->ps->scale = 11; in pspdf_alloc()
610 lineheight = PNT2AFM(p, ((double)p->ps->scale * 1.4)); in pspdf_alloc()
915 ps_printf(p, "/fs %zu def\n", p->ps->scale); in ps_begin()
991 (int)p->ps->lastf, p->ps->scale); in ps_pletter()
1281 (int)f, p->ps->scale); in ps_setfont()
1314 r = PNT2AFM(p, su->scale * 72.0 / 240.0); in ps_hspan()
1317 r = PNT2AFM(p, su->scale * 72.0 / 2.54); in ps_hspan()
[all …]
/dflybsd-src/contrib/mpc/src/
H A Dnorm.c137 unsigned long int scale, exp_re, exp_im; in mpc_norm() local
143 scale = exp_re / 2 + exp_im / 2 + (exp_re % 2 + exp_im % 2) / 2; in mpc_norm()
148 mpfr_mul_2ui (u, mpc_realref (b), scale, GMP_RNDN); in mpc_norm()
152 mpfr_mul_2ui (u, u, 2*scale, GMP_RNDN); in mpc_norm()
154 mpfr_mul_2ui (v, mpc_imagref (b), scale, GMP_RNDN); in mpc_norm()
158 mpfr_mul_2ui (v, v, 2*scale, GMP_RNDN); in mpc_norm()
162 inex_underflow = mpfr_div_2ui (a, a, 2*scale, rnd); in mpc_norm()
/dflybsd-src/contrib/gdtoa/
H A Dstrtod.c66 (x, scale) U *x; int scale; in sulp() argument
68 (U *x, int scale)
76 if (!scale || (i = 2*P + 1 - ((word0(x) & Exp_mask) >> Exp_shift)) <= 0)
93 int scale; local
440 scale = 0;
529 scale = 2*P;
533 if (scale && (j = 2*P + 1 - ((word0(&rv) & Exp_mask)
605 j = bbe - scale;
635 bd2 += scale;
686 if (!scale || y > 2*P*Exp_msk1)
[all …]
/dflybsd-src/contrib/mpfr/src/
H A Dfma.c205 unsigned long scale = 0; in mpfr_fma() local
226 scale = uscale; in mpfr_fma()
228 inexact = mpfr_mul_2ui (scaled_z, z, scale, MPFR_RNDN); in mpfr_fma()
236 mpfr_mul_2ui (scaled_v, x, scale, MPFR_RNDN); in mpfr_fma()
242 mpfr_mul_2ui (scaled_v, y, scale, MPFR_RNDN); in mpfr_fma()
269 if (scale != 0) in mpfr_fma()
279 inex2 = mpfr_div_2ui (s, s, scale, MPFR_RNDN); in mpfr_fma()
H A Dfms.c207 unsigned long scale = 0; in mpfr_fms() local
228 scale = uscale; in mpfr_fms()
230 inexact = mpfr_mul_2ui (scaled_z, z, scale, MPFR_RNDN); in mpfr_fms()
238 mpfr_mul_2ui (scaled_v, x, scale, MPFR_RNDN); in mpfr_fms()
244 mpfr_mul_2ui (scaled_v, y, scale, MPFR_RNDN); in mpfr_fms()
271 if (scale != 0) in mpfr_fms()
281 inex2 = mpfr_div_2ui (s, s, scale, MPFR_RNDN); in mpfr_fms()
/dflybsd-src/sys/tools/sound/
H A Dfeeder_rate_mkfilter.awk470 function genscale(bit, s1, s2, scale)
481 scale = "v";
483 scale = sprintf("(v) << %d", abs(s1));
485 scale = sprintf("(v) >> %d", s1);
487 scale = sprintf("(%s) * Z_SCALE_CAST(s)", scale);
490 scale = sprintf("(%s) >> %d", scale, s2);
493 bit, (bit < 10) ? "\t" : "", scale);

123456