/freebsd-current/contrib/bc/tests/bc/scripts/ |
H A D | globals.bc | 18 scale=x 19 return scale 27 scale
|
H A D | screen.bc | 4 scale = 0 11 scale = 20 13 scale = 0 15 scale = 1
|
H A D | add.bc | 3 scale = 20 4 x = 1234567890 / scale 5 len = length(x) + 1 + scale
|
H A D | subtract.bc | 3 scale = 20 4 x = 1234567890 / scale 5 len = length(x) + 1 + scale
|
H A D | divide.bc | 3 scale = 20 4 x = 1234567890 * 10^(-scale) 5 len = 1 + 2 * scale 8 scale += 10
|
H A D | i2rand.bc | 6 a = srand(ifrand(101, scale)) 13 b = srand(ifrand(101, scale))
|
H A D | multiply.bc | 3 scale = 20 4 x = 1234567890 / scale 5 len = length(x) + 1 + scale
|
H A D | bessel.bc | 35 if (a[i] == 0 && scale(a[i]) > 0) print ".0000000000000000" 37 if (a[j] == 0 && scale(a[j]) > 0) print ".0000000000000000" 44 print "scale = 0; j(40, 0.75)\n"
|
/freebsd-current/contrib/llvm-project/clang/lib/Headers/ |
H A D | avx512pfintrin.h | 17 #define _mm512_mask_prefetch_i32gather_pd(index, mask, addr, scale, hint) \ 19 (void const *)(addr), (int)(scale), \ 22 #define _mm512_prefetch_i32gather_pd(index, addr, scale, hint) \ 24 (void const *)(addr), (int)(scale), \ 27 #define _mm512_mask_prefetch_i32gather_ps(index, mask, addr, scale, hint) \ 30 (int)(scale), (int)(hint)) 32 #define _mm512_prefetch_i32gather_ps(index, addr, scale, hint) \ 35 (int)(scale), (int)(hint)) 37 #define _mm512_mask_prefetch_i64gather_pd(index, mask, addr, scale, hint) \ 39 (void const *)(addr), (int)(scale), \ [all...] |
/freebsd-current/usr.bin/dc/ |
H A D | mem.c | 35 n->scale = 0; 60 u_int scale; local 63 quotient->scale = bscale; 64 scale = max(divisor->scale, dividend->scale); 69 normalize(divisor, scale); 70 normalize(dividend, scale + quotient->scale); 87 n->scale [all...] |
H A D | bcode.c | 43 u_int scale; member in struct:bmachine 255 return bmachine.scale; 308 fprintf(stderr, " %s (%u)\n" , p, n->scale); 378 if (n->scale == 0 && f != NULL) 380 else if (n->scale < sizeof(factors)/sizeof(factors[0])) { 381 rem = BN_div_word(i, factors[n->scale]); 396 bn_check(BN_set_word(p, n->scale)); 405 /* Change the scale of n to s. Reducing scale may truncate the mantissa */ 410 scale_number(n->number, s - n->scale); 587 u_long scale; local 676 u_int scale = 0; local 1017 bmul_number(struct number *r, struct number *a, struct number *b, u_int scale) argument 1084 u_int scale; local 1120 u_int scale; local 1301 u_int onecount, scale; local 1477 u_int scale; local [all...] |
/freebsd-current/usr.bin/systat/ |
H A D | ifcmds.c | 48 int scale; local 50 if (prefix(cmd, "scale")) { 51 if ((scale = get_scale(args)) != -1) 52 curscale = scale; 56 addstr("what scale? ");
|
H A D | convtbl.c | 52 uintmax_t scale; member in struct:convtbl 58 /* mul, scale, str, name */ 76 get_tbl_ptr(const uintmax_t size, const int scale) argument 82 idx = scale < SC_AUTO ? scale : SC_AUTO; 99 convert(const uintmax_t size, const int scale) argument 103 tp = get_tbl_ptr(size, scale); 104 return ((double)size * tp->mul / tp->scale); 109 get_string(const uintmax_t size, const int scale) argument 113 tp = get_tbl_ptr(size, scale); [all...] |
/freebsd-current/lib/msun/src/ |
H A D | s_csqrt.c | 42 double a, b, rx, ry, scale, t; local 76 * Don't scale a or b if this might give (spurious) 84 scale = 2; 86 scale = 1; 93 scale = 0x1p-27; 99 rx = scale * t; 100 ry = scale * b / (2 * t); 103 rx = scale * fabs(b) / (2 * t); 104 ry = copysign(scale * t, b);
|
H A D | s_csqrtl.c | 57 long double a, b, rx, ry, scale, t; local 91 * Don't scale a or b if this might give (spurious) 99 scale = 2; 101 scale = 1; 108 scale = 0x1p-32; 114 rx = scale * t; 115 ry = scale * b / (2 * t); 118 rx = scale * fabsl(b) / (2 * t); 119 ry = copysignl(scale * t, b);
|
/freebsd-current/contrib/bc/scripts/ |
H A D | sqrt_random.bc | 30 scale = 0 84 scale = length(num) + 5 86 scale = 0 117 # Do we want a zero scale? 120 print "scale = 0\n" 124 print "scale = 20\n"
|
/freebsd-current/contrib/arm-optimized-routines/pl/math/ |
H A D | exp.c | 26 is scale*(1+TMP) without intermediate rounding. The bit representation of 27 scale is in SBITS, however it has a computed exponent that may have 30 adjustment of scale, positive k here means the result may overflow and 35 double_t scale, y; local 39 /* k > 0, the exponent of scale might have overflowed by <= 460. */ 41 scale = asdouble (sbits); 42 y = 0x1p1009 * (scale + scale * tmp); 47 scale = asdouble (sbits); 48 y = scale 85 double_t kd, z, r, r2, scale, tail, tmp; local [all...] |
H A D | sv_erff_2u.c | 14 float min, max, scale, shift, third; member in struct:data 18 .scale = 0x1.20dd76p+0f, /* 2/sqrt(pi). */ 28 Let d = x - r, and scale = 2 / sqrt(pi) * exp(-r^2). For x near r, 30 erf(x) ~ erf(r) + scale * d * [1 - r * d - 1/3 * d^2] 32 Values of erf(r) and scale are read from lookup tables. 33 For |x| < 0x1.cp-7, the algorithm sets r = 0, erf(r) = 0, and scale = 2 / 65 /* scale set to 2/sqrt(pi) for |x| below min. */ 66 svfloat32_t scale = svld1_gather_index (a_gt_min, __sv_erff_data.scale, i); local 67 scale [all...] |
/freebsd-current/contrib/arm-optimized-routines/math/ |
H A D | exp.c | 26 is scale*(1+TMP) without intermediate rounding. The bit representation of 27 scale is in SBITS, however it has a computed exponent that may have 30 adjustment of scale, positive k here means the result may overflow and 35 double_t scale, y; local 39 /* k > 0, the exponent of scale might have overflowed by <= 460. */ 41 scale = asdouble (sbits); 42 y = 0x1p1009 * (scale + scale * tmp); 47 scale = asdouble (sbits); 48 y = scale 85 double_t kd, z, r, r2, scale, tail, tmp; local [all...] |
H A D | exp2.c | 24 is scale*(1+TMP) without intermediate rounding. The bit representation of 25 scale is in SBITS, however it has a computed exponent that may have 28 adjustment of scale, positive k here means the result may overflow and 33 double_t scale, y; local 37 /* k > 0, the exponent of scale might have overflowed by 1. */ 39 scale = asdouble (sbits); 40 y = 2 * (scale + scale * tmp); 45 scale = asdouble (sbits); 46 y = scale 81 double_t kd, r, r2, scale, tail, tmp; local [all...] |
H A D | exp10.c | 23 double_t scale, y; local 27 /* The exponent of scale might have overflowed by 1. */ 29 scale = asdouble (sbits); 30 y = 2 * (scale + scale * tmp); 36 scale = asdouble (sbits); 37 y = scale + scale * tmp; 45 double_t lo = scale - y + scale * tm [all...] |
/freebsd-current/contrib/libxo/libxo/ |
H A D | xo_humanize.h | 64 const char *suffix, int scale, int flags) 81 assert(scale >= 0); 102 #define SCALE2PREFIX(scale) (&prefixes[(scale) << 1]) 105 if (scale >= maxscale && 106 (scale & (HN_AUTOSCALE | HN_GETSCALE)) == 0) 135 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) { 143 if (scale & HN_GETSCALE) 146 for (i = 0; i < scale && i < maxscale; i++) 63 xo_humanize_number(char *buf, size_t len, int64_t bytes, const char *suffix, int scale, int flags) argument
|
/freebsd-current/lib/libutil/ |
H A D | humanize_number.c | 49 const char *suffix, int scale, int flags) 64 if (scale < 0) 66 else if (scale > maxscale && 67 ((scale & ~(HN_AUTOSCALE|HN_GETSCALE)) != 0)) 111 #define SCALE2PREFIX(scale) (&prefixes[(scale) * 3]) 133 if (scale & (HN_AUTOSCALE | HN_GETSCALE)) { 151 if (scale & HN_GETSCALE) 154 for (i = 0; i < scale && i < maxscale; i++) { 48 humanize_number(char *buf, size_t len, int64_t quotient, const char *suffix, int scale, int flags) argument
|
/freebsd-current/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 in struct:BcNum 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 [all...] |
/freebsd-current/sys/cddl/dev/kinst/amd64/ |
H A D | kinst_isa.h | 38 int scale; member in struct:kinst_probe_md
|