/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | arrays.sh | 131 unset x 132 x[2]=foo x[4]=bar 177 x=1 292 unset x 298 x+=(8) 433 typeset -a foo=([1]=(x=ok) [2]=(x=no)) 441 typeset -A foo=([1]=(x=ok) [2]=(x=no)) 487 x[2]= 497 x[2]= 598 x=$( [all …]
|
/illumos-gate/usr/src/compat/bhyve/sys/ |
H A D | param.h | 41 #define nitems(x) (sizeof((x)) / sizeof((x)[0])) argument 42 #define rounddown(x,y) (((x)/(y))*(y)) argument 43 #define rounddown2(x, y) ((x)&(~((y)-1))) /* if y is power of two */ argument 44 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ argument 45 #define roundup2(x,y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ argument 46 #define powerof2(x) ((((x)-1)&(x))==0) argument 52 #define trunc_page(x) ((unsigned long)(x) & ~(PAGE_MASK)) argument 53 #define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT) argument
|
/illumos-gate/usr/src/lib/libm/common/R/ |
H A D | besself.c | 282 cc = -cos(x + x) / ss; in __k_j0f() 285 ss = -cos(x + x) / cc; in __k_j0f() 311 z = x * x; in __k_j0f() 394 z = x * x; in __k_y0f() 450 ss = cos(x + x) / cc; in __k_j1f() 453 cc = cos(x + x) / ss; in __k_j1f() 479 t = x * (half + neighth * x * x); in __k_j1f() 482 z = x * x; in __k_j1f() 537 ss = cos(x + x) / cc; in __k_y1f() 540 cc = cos(x + x) / ss; in __k_y1f() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/fp/ |
H A D | _Q_qtod.c | 49 if (x->l.msw & 0x80000000) in _Q_qtod() 55 if ((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Q_qtod() 56 x->l.frac4) { in _Q_qtod() 60 (x->l.frac2 >> 28); in _Q_qtod() 90 __quad_fqtod(x, &u.d); in _Q_qtod() 102 if (QUAD_ISZERO(*x)) { in _Q_qtod() 123 u.l.lo = (x->l.frac2 << 3) | (x->l.frac3 >> 29); in _Q_qtod() 125 sticky = (x->l.frac3 & 0xfffffff) | x->l.frac4; in _Q_qtod() 143 u.l.lo = (x->l.frac2 << 4) | (x->l.frac3 >> 28); in _Q_qtod() 145 sticky = (x->l.frac3 & 0x7ffffff) | x->l.frac4; in _Q_qtod() [all …]
|
H A D | _Q_qtos.c | 46 xm = x->l.msw & 0x7fffffff; in _Q_qtos() 52 if (x->l.msw & 0x80000000) in _Q_qtos() 58 if ((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Q_qtos() 59 x->l.frac4) { in _Q_qtos() 63 (x->l.frac2 >> 25); in _Q_qtos() 87 __quad_fqtos(x, &u.f); in _Q_qtos() 99 if (QUAD_ISZERO(*x)) { in _Q_qtos() 107 __quad_fqtos(x, &u.f); in _Q_qtos() 122 x->l.frac3 | x->l.frac4; in _Q_qtos() 128 sticky = (x->l.frac2 & 0xffffff) | x->l.frac3 | x->l.frac4; in _Q_qtos() [all …]
|
H A D | _Q_qtoi.c | 37 _Q_qtoi(const union longdouble *x) in _Q_qtoi() argument 42 xm = x->l.msw & 0x7fffffff; in _Q_qtoi() 48 if (x->l.msw == 0xc01e0000 && (x->l.frac2 & 0xfffe0000) == 0) { in _Q_qtoi() 51 if ((x->l.frac2 & 0x1ffff) | x->l.frac3 | x->l.frac4) { in _Q_qtoi() 54 __quad_fqtoi(x, &i); in _Q_qtoi() 65 __quad_fqtoi(x, &i); in _Q_qtoi() 74 if (xm | x->l.frac2 | x->l.frac3 | x->l.frac4) { in _Q_qtoi() 77 __quad_fqtoi(x, &i); in _Q_qtoi() 90 if (x->l.msw & 0x80000000) in _Q_qtoi() 92 if (round | (x->l.frac2 & 0x3ffff) | x->l.frac3 | x->l.frac4) { in _Q_qtoi() [all …]
|
/illumos-gate/usr/src/lib/libmp/common/ |
H A D | mout.c | 33 MINT x, y, ten; in m_in() local 42 x.len = 0; in m_in() 84 MINT x; in m_out() local 101 x.len = xlen; in m_out() 110 mp_sdiv(&x, b, &x, &r); in m_out() 128 MINT x, y; in mp_sdiv() local 140 x.len = -x.len; in mp_sdiv() 154 int x; in s_div() local 158 x = 0; in s_div() 164 x = x * 0100000 + *--aval; in s_div() [all …]
|
/illumos-gate/usr/src/lib/libm/i386/src/ |
H A D | hypot.S | 55 fldl 4(%esp) / x,y*y 56 fmul %st(0),%st / x*x,y*y 57 faddp %st,%st(1) / x*x+y*y 58 fsqrt / sqrt(x*x+y*y) 61 fldl (%esp) / sqrt(x*x+y*y) rounded to double 63 flds PIC_L(inf) / inf , sqrt(x*x+y*y) 85 pushl 12(%ebp) / high x 86 pushl 8(%ebp) / low x 97 / x = +/-0, so return |y| 109 / x = +/-INF, so return |x| [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/optim/ |
H A D | canonical-add.c | 1 int xpc_add_ypc(int x, int y) in xpc_add_ypc() argument 3 return (x + 1) + (y + 1); in xpc_add_ypc() 6 int xmc_add_ypc(int x, int y) in xmc_add_ypc() argument 8 return (x - 1) + (y + 1); in xmc_add_ypc() 11 int xpc_add_ymc(int x, int y) in xpc_add_ymc() argument 13 return (x + 1) + (y - 1); in xpc_add_ymc() 18 return (x - 1) + (y - 1); in xmc_add_ymc() 23 return (x + 1) - (y + 1); in xpc_sub_ypc() 28 return (x - 1) - (y + 1); in xmc_sub_ypc() 33 return (x + 1) - (y - 1); in xpc_sub_ymc() [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | atan.c | 126 atan(double x) { in atan() argument 130 hx = ((int *) &x)[HIWORD]; in atan() 139 return ((int) x == 0 ? x : one); in atan() 142 return (x + (x * t1) * (x * x)); in atan() 144 z = x * x; in atan() 145 s = t2 * x; in atan() 149 z = x * x; s = p1 * x; in atan() 157 r = one / x; in atan() 180 return (ix >= 0x7ff80000 ? x : x - x); in atan() 183 return (x - x); in atan() [all …]
|
H A D | erf.c | 300 return (0.125 * (8.0 * x + efx8 * x)); in erf() 301 return (x + efx * x); in erf() 303 z = x * x; in erf() 308 return (x + x * y); in erf() 327 x = fabs(x); in erf() 328 s = one / (x * x); in erf() 340 z = x; in erf() 368 z = x * x; in erfc() 374 return (one - (x + x * y)); in erfc() 396 x = fabs(x); in erfc() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/compat/ |
H A D | bswap.h | 25 #define bswap16(x) __builtin_bswap16(x) argument 28 static inline uint16_t bswap16(uint16_t x) in bswap16() argument 30 return x << 8 | x >> 8; in bswap16() 35 #define bswap32(x) __builtin_bswap32(x) argument 38 static inline uint32_t bswap32(uint32_t x) in bswap32() argument 40 return x >> 24 | (x >> 8 & 0xff00) | (x << 8 & 0xff0000) | x << 24; in bswap32() 45 #define bswap64(x) __builtin_bswap64(x) argument 48 static inline uint64_t bswap64(uint64_t x) in bswap64() argument 50 return ((uint64_t)bswap32(x)) << 32 | bswap32(x >> 32); in bswap64()
|
/illumos-gate/usr/src/head/arpa/ |
H A D | telnet.h | 81 #define TELCMD(x) telcmds[(x)-TELCMD_FIRST] argument 144 #define TELOPT_OK(x) ((unsigned int)(x) <= TELOPT_LAST) argument 145 #define TELOPT(x) telopts[(x)-TELOPT_FIRST] argument 219 #define SLC_NAME_OK(x) ((unsigned int)(x) <= NSLC) argument 220 #define SLC_NAME(x) slc_names[x] argument 262 #define AUTHWHO_NAME(x) authwho_str[x] argument 295 #define AUTHTYPE_NAME(x) authtype_names[x] argument 303 #define AUTHHOW_NAME(x) authhow_names[x] argument 317 #define AUTHRSP_NAME(x) authrsp_names[x] argument 367 #define ENCRYPT_NAME(x) encrypt_names[x] argument [all …]
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | cdefs.h | 156 #define __CONCAT1(x,y) x ## y argument 157 #define __CONCAT(x,y) __CONCAT1(x,y) argument 174 #define __CONCAT(x,y) x/**/y argument 237 #define __aligned(x) __attribute__((__aligned__(x))) argument 238 #define __section(x) __attribute__((__section__(x))) argument 267 #define _Alignas(x) alignas(x) argument 270 #define _Alignas(x) __aligned(x) argument 275 #define _Alignof(x) alignof(x) argument 277 #define _Alignof(x) __alignof(x) argument 297 #define _Static_assert(x, y) static_assert(x, y) argument [all …]
|
/illumos-gate/usr/src/lib/libm/common/LD/ |
H A D | hypotl.c | 79 w = x; in hypotl() 80 x = y; in hypotl() 91 w = x - y; in hypotl() 96 t2 = x - t1; in hypotl() 97 x = sqrtl(t1 * t1 - (y * (-y) - t2 * (x + t1))); in hypotl() 99 x += x; in hypotl() 107 t2 = x - t1; in hypotl() 108 x = sqrtl(t1 * y1 - (w * (-w) - (t2 * y1 + y2 * x))); in hypotl() 112 return (x); in hypotl() 117 return (x); in hypotl() [all …]
|
H A D | logbl.c | 38 #define X86PDNRM(k, x) argument 46 #define X86PDNRM(k, x) if (k == 0 && (((int *) &x)[1] & 0x80000000) != 0) \ argument 47 ((int *) &x)[2] |= k = 1 49 #define ISNORMALL(k, x) (k != 0x7fff && (((int *) &x)[1] & 0x80000000) != 0) argument 51 #define ISNORMALL(k, x) (k != 0x7fff) argument 65 logbl(long double x) { in logbl() argument 66 int k = XBIASED_EXP(x); in logbl() 68 X86PDNRM(k, x); in logbl() 70 if (ISZEROL(x)) in logbl() 77 } else if (ISNORMALL(k, x)) in logbl() [all …]
|
/illumos-gate/usr/src/lib/libm/amd64/src/ |
H A D | rndintl.S | 60 fistpl -8(%rcx) / [x] 83 frndint / [x],x 95 fxch / x,[x] 96 fsub %st(1),%st / x-[x],[x] 97 fabs / |x-[x]|,[x] 100 fcomip %st(1),%st / compare 0.5 with |x-[x]| 102 je .halfway / if 0.5 = |x-[x]| goto halfway, 109 / x = n+0.5, recompute anint(x) as x+sign(x)*0.5 110 fldt 8(%rcx) / x, 0.5, [x] 119 / here, x is negative, so return x-0.5 [all …]
|
/illumos-gate/usr/src/lib/libc/sparcv9/fp/ |
H A D | _Qp_qtox.c | 38 xm = x->l.msw & 0x7fffffff; in _Qp_qtox() 44 if (x->l.msw == 0xc03e0000 && x->l.frac2 == 0 && in _Qp_qtox() 48 if ((x->l.frac3 & 0x1ffff) | x->l.frac4) { in _Qp_qtox() 51 __quad_fqtox(x, &i); in _Qp_qtox() 63 __quad_fqtox(x, &i); in _Qp_qtox() 72 if (xm | x->l.frac2 | x->l.frac3 | x->l.frac4) { in _Qp_qtox() 75 __quad_fqtox(x, &i); in _Qp_qtox() 86 ((long) x->l.frac2 << 14) | (x->l.frac3 >> 18); in _Qp_qtox() 89 if (x->l.msw & 0x80000000) in _Qp_qtox() 91 if (round | (x->l.frac3 & 0x3ffff) | x->l.frac4) { in _Qp_qtox() [all …]
|
/illumos-gate/usr/src/boot/sys/amd64/include/ |
H A D | param.h | 138 #define round_page(x) ((((unsigned long)(x)) + PAGE_MASK) & ~(PAGE_MASK)) argument 139 #define trunc_page(x) ((unsigned long)(x) & ~(PAGE_MASK)) argument 140 #define trunc_2mpage(x) ((unsigned long)(x) & ~PDRMASK) argument 141 #define round_2mpage(x) ((((unsigned long)(x)) + PDRMASK) & ~PDRMASK) argument 142 #define trunc_1gpage(x) ((unsigned long)(x) & ~PDPMASK) argument 144 #define atop(x) ((unsigned long)(x) >> PAGE_SHIFT) argument 145 #define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT) argument 147 #define amd64_btop(x) ((unsigned long)(x) >> PAGE_SHIFT) argument 148 #define amd64_ptob(x) ((unsigned long)(x) << PAGE_SHIFT) argument 150 #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024)) argument
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | iffe.sh | 2073 x="$x$SEP$lin" 2099 x="$x$SEP$1" 2561 x=sys/$x.h 3172 *) x=$x$i 3433 eval set x x $binding 3571 eval set x x $binding 3763 x="$x $i" 3765 '!') x="$x 0 =" 3769 *) x="$x \\$i" ;; 3772 *) x="$x \\$i" [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | tgammal.c | 36 #define H0_WORD(x) ((unsigned *) &x)[0] argument 37 #define H3_WORD(x) ((unsigned *) &x)[3] argument 38 #define CHOPPED(x) (long double) ((double) (x)) argument 40 #define H0_WORD(x) ((((int *) &x)[2] << 16) | \ argument 42 #define H3_WORD(x) ((unsigned *) &x)[0] argument 43 #define CHOPPED(x) (long double) ((float) (x)) argument 761 z = x * x; in kpsin() 834 z = x * x; in kpcos() 937 z2 = (x + one) * (x + 3.0L); in gam_n() 1019 y = x; [all …]
|
/illumos-gate/usr/src/lib/libm/common/complex/ |
H A D | k_cexpl.c | 241 __k_cexpl(long double x, int *n) { in __k_cexpl() argument 246 hx = HI_XWORD(x); in __k_cexpl() 249 return (x + x); /* NaN of +inf */ in __k_cexpl() 251 return (-one / x); /* NaN or -inf */ in __k_cexpl() 253 return (one + x); /* |x|<2^-60 */ in __k_cexpl() 270 x = (x - t * ln2_32hi) - t * ln2_32lo; in __k_cexpl() 271 t = x * x; in __k_cexpl() 273 x = exp2_32_hi[j] - ((exp2_32_hi[j] * (x + x)) / r - exp2_32_lo[j]); in __k_cexpl() 276 XFSCALE(x, 240); in __k_cexpl() 279 XFSCALE(x, k); in __k_cexpl() [all …]
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | logbl.c | 38 #define X86PDNRM(k, x) argument 46 #define X86PDNRM(k, x) if (k == 0 && (((int *) &x)[1] & 0x80000000) != 0) \ argument 47 ((int *) &x)[2] |= k = 1 49 #define ISNORMALL(k, x) (k != 0x7fff && (((int *) &x)[1] & 0x80000000) != 0) argument 51 #define ISNORMALL(k, x) (k != 0x7fff) argument 65 logbl(long double x) { in logbl() argument 66 int k = XBIASED_EXP(x); in logbl() 68 X86PDNRM(k, x); in logbl() 70 if (ISZEROL(x)) in logbl() 77 } else if (ISNORMALL(k, x)) in logbl() [all …]
|
H A D | hypotl.c | 93 w = x; in hypotl() 94 x = y; in hypotl() 105 w = x - y; in hypotl() 110 t2 = x - t1; in hypotl() 111 x = sqrtl(t1 * t1 - (y * (-y) - t2 * (x + t1))); in hypotl() 113 x = x + x; in hypotl() 121 t2 = x - t1; in hypotl() 122 x = sqrtl(t1 * y1 - (w * (-w) - (t2 * y1 + y2 * x))); in hypotl() 126 return (x); in hypotl() 130 t2 = x; in hypotl() [all …]
|
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | ty_num.c | 116 while (*x && *x == ' ') in fcheck_num() 117 ++x; in fcheck_num() 118 if (*x) { in fcheck_num() 122 ++x; in fcheck_num() 123 while (*x && isdigit(*x)) in fcheck_num() 124 ++x; in fcheck_num() 126 ++x; in fcheck_num() 127 while (*x && isdigit(*x)) in fcheck_num() 128 ++x; in fcheck_num() 130 while (*x && *x == ' ') in fcheck_num() [all …]
|