/freebsd/contrib/bc/tests/bc/scripts/ |
H A D | atan.txt | 1 scale = 1 4 scale = 2 7 scale = 3 10 scale = 4 13 scale = 5 16 scale = 6 19 scale = 7 22 scale = 8 25 scale = 9 28 scale = 10 [all …]
|
/freebsd/contrib/bc/tests/bc/ |
H A D | scale.txt | 1 scale(0) 2 scale(1) 3 scale(12) 4 scale(123) 5 scale(1234) 6 scale(12345) 7 scale(123456) 8 scale(1234567) 9 scale(12345678) 10 scale(123456789) [all …]
|
H A D | multiply.txt | 46 scale = 0; 237854962 * -26 47 scale = 20; -989840367 * -604515309.000000000000000000000000000934882580147931989975995184020932681… 48 scale = 20; 623151276.1106104320046667401793737969130124845763706302869482103753909 * -605483272.00… 49 scale = 20; -4036255151 * -107387984.00000000000000000000000000000000000002111703188196071295060794… 50 scale = 19; 207225741.422284845290215111137445727462936392828872808516127361319675 * -1915632919.00… 51 scale = 4; -3700694776.0000000000000000000000000118760035148795036674648901732540974684491143245552… 52 scale = 4; 2471252773 * -2993804686 53 scale = 5; -4136888605.1006664686088985948377077150956015758460597074849621165317181 * -356481995.8… 54 scale = 10; -1226031704.000000000000000000000000000001604564576253363548680043729535457438899040946… 55 scale = 19; 1916023355.0000000000000000000000000000000000059079504119182402793056702704705747102402… [all …]
|
H A D | misc1.txt | 10 scale = 0 15 scale 29 scale(238.1) 34 (scale) 47 (scale(238.1)) 48 (scale = 0) 71 ++scale 72 --scale
|
/freebsd/usr.bin/bc/ |
H A D | bc.library | 40 scale = 20 46 t = scale 47 scale = 0 48 if (x > 0) scale = (0.435*x)/1 49 scale = scale + t + length(scale + t) + 1 77 scale = t 91 a = (1 - 10^scale) 95 t = scale 99 s = scale(x) 101 s = length(x)-scale(x) [all …]
|
/freebsd/contrib/bc/gen/ |
H A D | lib2.bc | 38 if(y==0)return 1@scale 44 if(y==a)return(x^a)@scale 56 s=scale 57 scale+=length(i)+5 63 scale=s 64 return i@scale 73 if(p<scale(x)&&x-t>=5>>p+1)t+=1>>p 108 s=scale 109 scale=0 111 scale [all...] |
H A D | lib.bc | 44 s=scale 46 scale=scale(x)+1 50 scale+=1 52 scale=r 63 scale=s 70 if(x<=0)return((1-A^scale)/1) 73 s=scale 74 scale+=6 93 scale [all...] |
/freebsd/usr.bin/dc/ |
H A D | bcode.c | 43 u_int scale; member 255 return bmachine.scale; in bmachine_scale() 308 fprintf(stderr, " %s (%u)\n" , p, n->scale); in pn() 378 if (n->scale == 0 && f != NULL) in split_number() 380 else if (n->scale < sizeof(factors)/sizeof(factors[0])) { in split_number() 381 rem = BN_div_word(i, factors[n->scale]); in split_number() 396 bn_check(BN_set_word(p, n->scale)); in split_number() 410 scale_number(n->number, s - n->scale); in normalize() 411 n->scale = s; in normalize() 579 bn_check(BN_set_word(n->number, bmachine.scale)); in get_scale() [all …]
|
H A D | mem.c | 35 n->scale = 0; in new_number() 60 u_int scale; in div_number() local 63 quotient->scale = bscale; in div_number() 64 scale = max(divisor->scale, dividend->scale); in div_number() 69 normalize(divisor, scale); in div_number() 70 normalize(dividend, scale + quotient->scale); in div_number() 87 n->scale = a->scale; in dup_number()
|
/freebsd/contrib/bc/include/ |
H A D | num.h | 122 /// bits less than scale. It is also used less than scale. See the 126 /// The actual scale of the number. This is different from rdx because there 128 /// digits may be part of the scale. However, scale must always match rdx 131 size_t scale; member 194 * Returns true if the BcNum @a n is one with no scale. 196 * @return True if @a n equals 1 with no scale, false otherwise. 214 * Rounds @a s (scale) up to the next power of BC_BASE_DIGS. This will also 217 * @param s The scale t 842 bc_num_inv(a,b,scale) global() argument [all...] |
/freebsd/contrib/bc/src/ |
H A D | num.c | 55 bc_num_m(BcNum* a, BcNum* b, BcNum* restrict c, size_t scale); 134 bc_num_setToZero(BcNum* restrict n, size_t scale) in bc_num_setToZero() argument 137 n->scale = scale; in bc_num_setToZero() 227 bc_num_leastSigPow(size_t scale) in bc_num_leastSigPow() argument 231 digs = scale % BC_BASE_DIGS; in bc_num_leastSigPow() 587 places_rdx = nrdx ? nrdx - BC_NUM_RDX(n->scale - places) : 0; in bc_num_truncate() 590 assert(places <= n->scale && (BC_NUM_ZERO(n) || places_rdx <= n->len)); in bc_num_truncate() 592 n->scale -= places; in bc_num_truncate() 602 pow = bc_num_leastSigPow(n->scale); in bc_num_truncate() 628 n->scale += places; in bc_num_extend() [all …]
|
/freebsd/contrib/arm-optimized-routines/math/ |
H A D | exp2.c | 33 double_t scale, y; in specialcase() local 39 scale = asdouble (sbits); in specialcase() 40 y = 2 * (scale + scale * tmp); in specialcase() 45 scale = asdouble (sbits); in specialcase() 46 y = scale + scale * tmp; in specialcase() 54 lo = scale - y + scale * tmp; in specialcase() 81 double_t kd, r, r2, scale, tail, tmp; in exp2() local 132 scale = asdouble (sbits); in exp2() 135 return eval_as_double (scale + scale * tmp); in exp2()
|
H A D | exp.c | 35 double_t scale, y; in specialcase() local 41 scale = asdouble (sbits); in specialcase() 42 y = 0x1p1009 * (scale + scale * tmp); in specialcase() 47 scale = asdouble (sbits); in specialcase() 48 y = scale + scale * tmp; in specialcase() 56 lo = scale - y + scale * tmp; in specialcase() 85 double_t kd, z, r, r2, scale, tail, tmp; in exp_inline() local 150 scale = asdouble (sbits); in exp_inline() 153 return eval_as_double (scale + scale * tmp); in exp_inline()
|
H A D | exp10.c | 23 double_t scale, y; in special_case() local 29 scale = asdouble (sbits); in special_case() 30 y = 2 * (scale + scale * tmp); in special_case() 36 scale = asdouble (sbits); in special_case() 37 y = scale + scale * tmp; in special_case() 45 double_t lo = scale - y + scale * tmp; in special_case()
|
/freebsd/contrib/arm-optimized-routines/pl/math/ |
H A D | exp.c | 35 double_t scale, y; in specialcase() local 41 scale = asdouble (sbits); in specialcase() 42 y = 0x1p1009 * (scale + scale * tmp); in specialcase() 47 scale = asdouble (sbits); in specialcase() 48 y = scale + scale * tmp; in specialcase() 56 lo = scale - y + scale * tmp; in specialcase() 85 double_t kd, z, r, r2, scale, tail, tmp; in exp_inline() local 150 scale = asdouble (sbits); in exp_inline() 153 return eval_as_double (scale + scale * tmp); in exp_inline()
|
/freebsd/contrib/libxo/libxo/ |
H A D | xo_humanize.h | 64 const char *suffix, int scale, int flags) in xo_humanize_number() argument 81 assert(scale >= 0); in xo_humanize_number() 102 #define SCALE2PREFIX(scale) (&prefixes[(scale) << 1]) in xo_humanize_number() argument 105 if (scale >= maxscale && in xo_humanize_number() 106 (scale & (HN_AUTOSCALE | HN_GETSCALE)) == 0) in xo_humanize_number() 135 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) { in xo_humanize_number() 143 if (scale & HN_GETSCALE) in xo_humanize_number() 146 for (i = 0; i < scale && i < maxscale; i++) in xo_humanize_number()
|
/freebsd/usr.bin/systat/ |
H A D | convtbl.c | 52 uintmax_t scale; member 76 get_tbl_ptr(const uintmax_t size, const int scale) in get_tbl_ptr() argument 82 idx = scale < SC_AUTO ? scale : SC_AUTO; in get_tbl_ptr() 99 convert(const uintmax_t size, const int scale) in convert() argument 103 tp = get_tbl_ptr(size, scale); in convert() 104 return ((double)size * tp->mul / tp->scale); in convert() 109 get_string(const uintmax_t size, const int scale) in get_string() argument 113 tp = get_tbl_ptr(size, scale); in get_string()
|
/freebsd/lib/msun/src/ |
H A D | s_csqrt.c | 42 double a, b, rx, ry, scale, t; in csqrt() local 84 scale = 2; in csqrt() 86 scale = 1; in csqrt() 93 scale = 0x1p-27; in csqrt() 99 rx = scale * t; in csqrt() 100 ry = scale * b / (2 * t); in csqrt() 103 rx = scale * fabs(b) / (2 * t); in csqrt() 104 ry = copysign(scale * t, b); in csqrt()
|
H A D | s_csqrtl.c | 57 long double a, b, rx, ry, scale, t; in csqrtl() local 99 scale = 2; in csqrtl() 101 scale = 1; in csqrtl() 108 scale = 0x1p-32; in csqrtl() 114 rx = scale * t; in csqrtl() 115 ry = scale * b / (2 * t); in csqrtl() 118 rx = scale * fabsl(b) / (2 * t); in csqrtl() 119 ry = copysignl(scale * t, b); in csqrtl()
|
/freebsd/lib/libutil/ |
H A D | humanize_number.c | 49 const char *suffix, int scale, int flags) in humanize_number() argument 64 if (scale < 0) in humanize_number() 66 else if (scale > maxscale && in humanize_number() 67 ((scale & ~(HN_AUTOSCALE|HN_GETSCALE)) != 0)) in humanize_number() 111 #define SCALE2PREFIX(scale) (&prefixes[(scale) * 3]) in humanize_number() argument 133 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) { in humanize_number() 151 if (scale & HN_GETSCALE) in humanize_number() 154 for (i = 0; i < scale && i < maxscale; i++) { in humanize_number()
|
/freebsd/contrib/bc/tests/ |
H A D | bcl.c | 57 size_t scale; in main() local 86 // Ensure that the scale is properly set. in main() 87 scale = 10; in main() 88 bcl_ctxt_setScale(ctxt, scale); in main() 89 scale = bcl_ctxt_scale(ctxt); in main() 90 if (scale != 10) err(BCL_ERROR_FATAL_UNKNOWN_ERR); in main() 92 scale = 16; in main() 93 bcl_ctxt_setIbase(ctxt, scale); in main() 94 scale = bcl_ctxt_ibase(ctxt); in main() 95 if (scale ! in main() [all...] |
/freebsd/sys/riscv/sifive/ |
H A D | fe310_aon.c | 131 uint32_t scale, val; in feaon_wdt_event() local 153 scale = 0; in feaon_wdt_event() 156 scale++; in feaon_wdt_event() 159 if (time > FEAON_WDT_CMP_MASK || scale > FEAON_WDT_CFG_SCALE_MASK) { in feaon_wdt_event() 168 val |= scale | FEAON_WDT_CFG_RST_EN | FEAON_WDT_CFG_EN_ALWAYS | in feaon_wdt_event() 184 uint8_t scale; in feaon_rtc_settime() local 186 scale = 0; in feaon_rtc_settime() 197 scale++; in feaon_rtc_settime() 200 if (scale > FEAON_RTC_CFG_SCALE_MASK) { in feaon_rtc_settime() 206 cfg |= scale; in feaon_rtc_settime() [all …]
|
/freebsd/contrib/arm-optimized-routines/math/aarch64/ |
H A D | v_exp2f.c | 52 float32x4_t scale, const struct data *d) in special_case() argument 62 float32x4_t r0 = vfmaq_f32 (scale, poly, scale); in special_case() 72 float32x4_t n, r, r2, scale, p, q, poly; in V_NAME_F1() local 92 scale = vreinterpretq_f32_u32 (vaddq_u32 (e, d->exponent_bias)); in V_NAME_F1() 107 return special_case (xm, vfmaq_f32 (scale, poly, scale), cmp); in V_NAME_F1() 109 return special_case (poly, n, e, cmp, scale, d); in V_NAME_F1() 112 return vfmaq_f32 (scale, poly, scale); in V_NAME_F1()
|
/freebsd/crypto/openssl/crypto/whrlpool/asm/ |
H A D | wp-mmx.pl | 74 sub scale() subroutine 135 &scale ("esi","ecx"); 137 &scale ("edi","edx"); 142 &scale ("esi","ecx"); 144 &scale ("edi","edx"); 149 &scale ("esi","ecx"); 151 &scale ("edi","edx"); 156 &scale ("esi","ecx"); 158 &scale ("edi","edx"); 169 &scale ("esi","ecx"); [all …]
|
/freebsd/contrib/bc/tests/bc/errors/ |
H A D | 01.txt | 238 scale ==se-=a(1) 239 scale = 20 243 scale = 20 247 scale = 20 250 scale = 20 263 scale = 20 267 scale = 20 270 scale ==se-=a(1) 271 scale = 20 278 scale = 20 [all …]
|