Home
last modified time | relevance | path

Searched refs:x (Results 176 – 200 of 4183) sorted by relevance

12345678910>>...168

/illumos-gate/usr/src/lib/libm/common/R/
H A Drintf.c68 aintf(float x) { in aintf() argument
72 hx = *(int *) &x; in aintf()
87 anintf(float x) { in anintf() argument
91 hx = *(int *) &x; in anintf()
100 return (x); in anintf()
105 return (x); in anintf()
112 irintf(float x) { in irintf() argument
116 hx = *(int *) &x; in irintf()
123 nintf(float x) { in nintf() argument
127 hx = *(int *) &x; in nintf()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dusb_emul.h69 #define USB_EMUL_SET(x) DATA_SET(usb_emu_set, x) argument
128 #define USB_DATA_GET_ERRCODE(x) (x)->processed >> 8 argument
130 (x)->processed = ((x)->processed & 0xFF) | (e << 8); \
133 #define USB_DATA_OK(x,i) ((x)->data[(i)].buf != NULL) argument
135 #define USB_DATA_XFER_INIT(x) do { \ argument
136 memset((x), 0, sizeof(*(x))); \
141 memset((x)->data, 0, sizeof((x)->data)); \
142 (x)->ndata = 0; \
143 (x)->head = (x)->tail = 0; \
147 pthread_mutex_lock(&((x)->mtx)); \
[all …]
/illumos-gate/usr/src/uts/common/sys/sata/adapters/nv_sata/
H A Dnv_sgpio.h66 #define SGPIO_CSR_CSTAT(x) (((x) & SGPIO_CSR_CSTAT_MASK) >> \ argument
77 #define SGPIO_CSR_SEQ(x) (((x) & SGPIO_CSR_SEQ_MASK) >> \ argument
83 #define SGPIO_CSR_SSTAT(x) (((x) & SGPIO_CSR_SSTAT_MASK) >> \ argument
135 #define SGP_NVCR_CB_SIZE(x) (((x) & SGP_NVCR_CB_SIZE_MASK) >> \ argument
141 #define SGP_NVCR_CB_VERS(x) (((x) & SGP_NVCR_CB_VERS_MASK) >> \ argument
155 #define SGP_CR0_VERS(x) (((x) & SGP_CR0_VERS_MASK) >> \ argument
167 #define SGP_CR0_CFG_RC(x) (((x) & SGP_CR0_CFG_RC_MASK) >> \ argument
176 #define SGP_CR0_GP_RC(x) (((x) & SGP_CR0_GP_RC_MASK) >> \ argument
185 #define SGP_CR0_DRV_CNT(x) (((x) & SGP_CR0_DRV_CNT_MASK) >> \ argument
240 #define SGPIO0_TR_DRV(x, a) (((x) >> ((3 - (a)) * 8)) & 0xff) argument
[all …]
/illumos-gate/usr/src/boot/sys/sys/
H A Dparam.h86 #define P_OSREL_MAJOR(x) ((x) / 100000) argument
189 #define ctob(x) ((x)<<PAGE_SHIFT) argument
194 #define btoc(x) (((vm_offset_t)(x)+PAGE_MASK)>>PAGE_SHIFT) argument
291 #define howmany(x, y) (((x)+((y)-1))/(y)) argument
293 #define nitems(x) (sizeof((x)) / sizeof((x)[0])) argument
294 #define rounddown(x, y) (((x)/(y))*(y)) argument
298 #define powerof2(x) ((((x)-1)&(x))==0) argument
323 #define htonl(x) __htonl(x) argument
324 #define htons(x) __htons(x) argument
325 #define ntohl(x) __ntohl(x) argument
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/mutex/
H A Dmutex.c30 #define TSL_SET(x) (!_check_lock(x, 0, 1)) argument
31 #define TSL_UNSET(x) _clear_lock(x, 0) argument
50 #define TSL_UNSET(x) msem_unlock(x, 0) argument
54 #define TSL_INIT(x) initspin(x, 1) argument
55 #define TSL_SET(x) (cspinlock(x) == 0) argument
56 #define TSL_UNSET(x) spinunlock(x) argument
62 #define TSL_SET(x) (!acquire_lock(x)) argument
63 #define TSL_UNSET(x) release_lock(x) argument
76 #define TSL_SET(x) (_lock_try(x)) argument
77 #define TSL_UNSET(x) _lock_clear(x) argument
[all …]
/illumos-gate/usr/src/lib/libmvec/common/
H A D__vrem_pio2m.c183 q[0] = x[0] * ipio2[ip+2] + x[1] * ipio2[ip+1] + x[2] * ipio2[ip]; in __vlibm_rem_pio2m()
184 q[1] = x[0] * ipio2[ip+3] + x[1] * ipio2[ip+2] + x[2] * ipio2[ip+1]; in __vlibm_rem_pio2m()
185 q[2] = x[0] * ipio2[ip+4] + x[1] * ipio2[ip+3] + x[2] * ipio2[ip+2]; in __vlibm_rem_pio2m()
186 q[3] = x[0] * ipio2[ip+5] + x[1] * ipio2[ip+4] + x[2] * ipio2[ip+3]; in __vlibm_rem_pio2m()
187 q[4] = x[0] * ipio2[ip+6] + x[1] * ipio2[ip+5] + x[2] * ipio2[ip+4]; in __vlibm_rem_pio2m()
188 q[5] = x[0] * ipio2[ip+7] + x[1] * ipio2[ip+6] + x[2] * ipio2[ip+5]; in __vlibm_rem_pio2m()
190 q[0] = x[0] * ipio2[ip+2] + x[1] * ipio2[ip+1]; in __vlibm_rem_pio2m()
191 q[1] = x[0] * ipio2[ip+3] + x[1] * ipio2[ip+2]; in __vlibm_rem_pio2m()
192 q[2] = x[0] * ipio2[ip+4] + x[1] * ipio2[ip+3]; in __vlibm_rem_pio2m()
193 q[3] = x[0] * ipio2[ip+5] + x[1] * ipio2[ip+4]; in __vlibm_rem_pio2m()
[all …]
/illumos-gate/usr/src/lib/libm/common/complex/
H A Dcacos.c225 x = D_RE(z); in cacos()
267 x = fabs(x); in cacos()
327 D_IM(ans) = log(x + sqrt((x - one) * (x + in cacos()
337 D_IM(ans) = y / sqrt((one + x) * (one - x)); in cacos()
342 t = sqrt((x - one) * (x + one)); in cacos()
358 t = x / y; in cacos()
371 xp1 = x + one; in cacos()
372 xm1 = x - one; in cacos()
376 B = x / A; in cacos()
380 Apx = A + x; in cacos()
[all …]
H A Dcacosl.c80 x = LD_RE(z); in cacosl()
88 if (x == zero) { in cacosl()
112 if (isinfl(x)) in cacosl()
176 x = fabsl(x); in cacosl()
180 LD_IM(ans) = logl(x + sqrtl((x - one) * (x + in cacosl()
192 x = fabsl(x); in cacosl()
193 LD_IM(ans) = y / sqrtl((one + x) * (one - x)); in cacosl()
207 x = fabsl(x); in cacosl()
208 t = sqrtl((x - one) * (x + one)); in cacosl()
224 t = x / y; in cacosl()
[all …]
/illumos-gate/usr/src/lib/libm/common/Q/
H A Dieee_funcl.c34 isinfl(long double x) { in isinfl() argument
35 int *px = (int *) &x; in isinfl()
42 int *px = (int *) &x; in isnormall()
48 int *px = (int *) &x; in issubnormall()
54 iszerol(long double x) { in iszerol() argument
55 int *px = (int *) &x; in iszerol()
66 isinfl(long double x) { in isinfl() argument
67 int *px = (int *) &x; in isinfl()
79 int *px = (int *) &x; in isnormall()
90 int *px = (int *) &x; in issubnormall()
[all …]
H A Dsqrtl.c158 else if (x->l.frac2 | (x->l.frac3 & 0xfffe0000)) in __q_unpack()
166 else if (x->l.frac3 | (x->l.frac4 & 0xfffe0000)) in __q_unpack()
322 c = sqrt((x[0] + x[1]) + x[2]); in __q_tp_sqrt()
328 r[0] = ((x[0] - t[0] * t[0]) + x[1]) + x[2]; in __q_tp_sqrt()
410 x.d = ldx; in sqrtl()
411 if (!((x.l.msw & 0x7fffffff) | x.l.frac2 | x.l.frac3 | x.l.frac4)) in sqrtl()
417 if ((x.l.msw & 0xffff) | x.l.frac2 | x.l.frac3 | x.l.frac4) in sqrtl()
425 return x.d; in sqrtl()
435 return x.d; in sqrtl()
466 x.l.msw = 0; in sqrtl()
[all …]
/illumos-gate/usr/src/lib/libmp/common/
H A Dmsqrt.c29 MINT a0, x, junk, y; in mp_msqrt() local
44 x.val = _mp_xalloc(x.len, "mp_msqrt"); in mp_msqrt()
45 for (j = 0; j < x.len; x.val[j++] = 0) in mp_msqrt()
48 x.val[x.len - 1] = 0400; in mp_msqrt()
50 x.val[x.len - 1] = 1; in mp_msqrt()
57 mp_madd(&x, &y, &y); in mp_msqrt()
60 _mp_xfree(&x); in mp_msqrt()
61 _mp_move(&y, &x); in mp_msqrt()
66 _mp_move(&x, b); in mp_msqrt()
67 mp_mult(&x, &x, &x); in mp_msqrt()
[all …]
/illumos-gate/usr/src/lib/libm/i386/src/
H A Dacosf.S38 fld %st(1) / x , 1 , x
39 fabs / |x| , 1 , x
44 fadd %st(1),%st / 1+x,x
51 / x is -1
52 fstp %st(0) / x
57 fxch %st(1) / x,1+x
58 fld1 / 1,x,1+x
59 fsubp %st,%st(1) / 1-x,1+x
60 fdivp %st,%st(1) / (1-x)/(1+x)
62 fld1 / 1,sqrt((1-x)/(1+x))
[all …]
H A Dlround.S48 frndint / [x],x
57 fucom / check if x is already an integer
62 fxch / x,[x]
63 fsub %st(1),%st / x-[x],[x]
64 fabs / |x-[x]|,[x]
70 jae 2f / if |x-[x]| = 0.5 goto halfway,
81 / x = n+0.5, recompute lround(x) as x+sign(x)*0.5
82 fldl 4(%ecx) / x, 0.5, [x]
83 movl 8(%ecx),%eax / high part of x
90 / here, x is negative, so return x-0.5
[all …]
H A Dround.S48 frndint / [x],x
57 fucom / check if x is already an integer
62 fxch / x,[x]
63 fsub %st(1),%st / x-[x],[x]
64 fabs / |x-[x]|,[x]
70 jae 2f / if |x-[x]| = 0.5 goto halfway,
77 / x = n+0.5, recompute round(x) as x+sign(x)*0.5
78 fldl 4(%ecx) / x, 0.5, [x]
79 movl 8(%ecx),%eax / high part of x
87 / here, x is negative, so return x-0.5
[all …]
H A Droundl.S48 frndint / [x],x
57 fucom / check if x is already an integer
62 fxch / x,[x]
63 fsub %st(1),%st / x-[x],[x]
64 fabs / |x-[x]|,[x]
70 jae 2f / if |x-[x]| = 0.5 goto halfway,
77 / x = n+0.5, recompute roundl(x) as x+sign(x)*0.5
78 fldt 4(%ecx) / x, 0.5, [x]
79 movw 12(%ecx),%ax / sign+exp of x
87 / here, x is negative, so return x-0.5
[all …]
H A Dacosl.S37 fld %st(1) / x , 1 , x
38 fabs / |x| , 1 , x
43 fadd %st(1),%st / 1+x,x
50 / x is -1
56 fxch %st(1) / x,1+x
57 fld1 / 1,x,1+x
58 fsubp %st,%st(1) / 1-x,1+x
59 fdivp %st,%st(1) / (1-x)/(1+x)
61 fld1 / 1,sqrt((1-x)/(1+x))
66 / |x| > 1
[all …]
H A Dlroundl.S48 frndint / [x],x
57 fucom / check if x is already an integer
62 fxch / x,[x]
63 fsub %st(1),%st / x-[x],[x]
64 fabs / |x-[x]|,[x]
70 jae 2f / if |x-[x]| = 0.5 goto halfway,
81 / x = n+0.5, recompute lroundl(x) as x+sign(x)*0.5
82 fldt 4(%ecx) / x, 0.5, [x]
83 movw 12(%ecx),%ax / sign+exp part of x
90 / here, x is negative, so return x-0.5
[all …]
/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A DT.clv36 ' x=1 > $TEMP1
45 ' x=1 x=2 x=3 > $TEMP1
55 ' x=1 x=2 x=3 $TEMP0 > $TEMP1
77 END { print x }' x=6 $TEMP0 x=end > $TEMP2
84 END { print x }' x=7 /dev/null x=end > $TEMP2
144 $AWK -f $TEMP0 -v x=123 -v y=abc -v z1=10.99 /dev/null x=4567 /dev/null > $TEMP2
158 $AWK -v x=123 -v y=abc -v z1=10.99 -f $TEMP0 x=4567 /etc/passwd > $TEMP2
188 $AWK -v 'x=\' 'BEGIN { print x; }' > $TEMP2
194 $AWK -vx 'BEGIN {print x}' > $TEMP1 2>&1
195 grep 'invalid -v option argument: x' $TEMP1 >/dev/null || fail 'BAD: T.clv (x=20)'
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dvariables.sh104 set x
114 unset x
121 x=bar
122 if [[ $x != x.set ]]
151 x=$0
400 x=${x#' '}
401 x=${x%' '}
487 x=$(
587 x[0]=0 x[1]=1 x[2]=2 x[3]=3
622 [[ $r == $x ]] || err_exit "$v=$x failed -- expected '$x', got '$r'"
[all …]
H A Dtypes.sh48 typeset -C x=r.x
59 typeset -C s.x=r.x
66 y=$x
113 typeset -m x[1]=x[2]
132 X_t x
135 [[ ${x.s} == ${x.x} ]] || err_exit 'x.s should be x.x'
156 x=1
171 x=1
199 unset x
200 A_t x
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dcurshdr.h174 #define RBYTE(x) ((x) & 0377) argument
176 #define ISMBIT(x) ((x) & MBIT) argument
177 #define SETMBIT(x) ((x) |= MBIT) argument
178 #define CLRMBIT(x) ((x) &= ~MBIT) argument
179 #define ISCBIT(x) ((x) & CBIT) argument
180 #define SETCBIT(x) ((x) |= CBIT) argument
181 #define CLRCBIT(x) ((x) &= ~CBIT) argument
182 #define TYPE(x) ((x) == SS2 ? 1 : (x) == SS3 ? 2 : ISMBIT(x) ? 0 : 3) argument
196 #define _BRS(x) (cfgetospeed(&x)) argument
201 #define _BR(x) (x.sg_ispeed) argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrexpr.c80 register long x; in expr() local
135 if (!n) n = x; in expr()
147 n = x; in expr()
161 n = n || x; in expr()
167 n |= x; in expr()
173 n ^= x; in expr()
181 n = n && x; in expr()
187 n &= x; in expr()
207 else n >>= x; in expr()
232 else n -= x; in expr()
[all …]
/illumos-gate/usr/src/lib/libm/amd64/src/
H A Dacosl.S37 fld %st(1) / x , 1 , x
38 fabs / |x| , 1 , x
41 fadd %st(1),%st / 1+x,x
46 / x is -1
52 fxch %st(1) / x,1+x
53 fld1 / 1,x,1+x
54 fsubp %st,%st(1) / 1-x,1+x
55 fdivp %st,%st(1) / (1-x)/(1+x)
57 fld1 / 1,sqrt((1-x)/(1+x))
62 / |x| > 1
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dspecifiers1.c3 #define TEST(x) { T a; x *b = &a; } in OK() argument
4 #define TEST2(x, y) TEST(x y) TEST(y x) in OK() argument
5 #define TEST3(x, y, z) TEST(x y z) TEST(x z y) TEST(y x z) \ in OK() argument
6 TEST(y z x) TEST(z x y) TEST(z y x) in OK()
7 #define TEST4(x, y, z, w) TEST2(x y, z w) TEST2(x y, w z) \ in OK() argument
8 TEST2(y x, z w) TEST2(y x, w z) \ in OK()
9 TEST2(x z, y w) TEST2(x z, w y) \ in OK()
10 TEST2(z x, y w) TEST2(z x, w y) \ in OK()
11 TEST2(x w, y z) TEST2(x w, z y) \ in OK()
12 TEST2(w x, y z) TEST2(w x, z y) in OK()
/illumos-gate/usr/src/lib/libm/common/C/
H A Dasin.c106 asin(double x) { in asin() argument
115 return (x * pio2_hi + x * pio2_lo); in asin()
116 else if (isnan(x)) in asin()
118 return (ix >= 0x7ff80000 ? x : (x - x) / (x - x)); in asin()
121 return (x - x) / (x - x); /* asin(|x|>1) is NaN */ in asin()
124 return (_SVID_libm_err(x, x, 2)); in asin()
127 if ((i = (int) x) == 0) in asin()
129 return (x); in asin()
131 t = x * x; in asin()
136 return (x + x * w); in asin()
[all …]

12345678910>>...168