Home
last modified time | relevance | path

Searched refs:px (Results 1 – 25 of 130) sorted by relevance

123456

/illumos-gate/usr/src/lib/libm/common/Q/
H A Dieee_funcl.c35 int *px = (int *) &x; in isinfl() local
36 return ((px[0] & ~0x80000000) == 0x7fff0000 && px[1] == 0 && in isinfl()
37 px[2] == 0 && px[3] == 0); in isinfl()
42 int *px = (int *) &x; in isnormall() local
48 int *px = (int *) &x; in issubnormall() local
50 return (px[0] < 0x00010000 && (px[0] | px[1] | px[2] | px[3]) != 0); in issubnormall()
56 return (((px[0] & ~0x80000000) | px[1] | px[2] | px[3]) == 0); in iszerol()
70 ((px[1] ^ 0x80000000) | px[0]) == 0); in isinfl()
73 ((px[1] & ~0x80000000) | px[0]) == 0); in isinfl()
91 return ((px[2] & 0x7fff) == 0 && (px[0] | px[1]) != 0); in issubnormall()
[all …]
H A Dnextafterl.c41 #define INC(px) { \ argument
45 ++px[n0]; \
47 #define DEC(px) { \ argument
51 --px[n0]; \
67 px[n1] = 0x80000000, ++px[n0]; \
89 px[n1] = px[n2] = 0; in nextafterl()
90 px[n3] = 1; in nextafterl()
95 DEC(px) in nextafterl()
97 INC(px) in nextafterl()
100 DEC(px) in nextafterl()
[all …]
H A Disnanl.c37 int *px = (int *) &x; in isnanl() local
38 return ((px[0] & ~0x80000000) >= 0x7fff0000 && in isnanl()
39 ((px[0] & ~0xffff0000) | px[1] | px[2] | px[3]) != 0); in isnanl()
44 int *px = (int *) &x, t = px[2] & 0x7fff; in isnanl() local
46 return (t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0 || in isnanl()
47 t != 0 && (px[1] & 0x80000000) == 0); in isnanl()
49 return (t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0); in isnanl()
/illumos-gate/usr/src/lib/libm/common/LD/
H A Dnextafterl.c41 #define INC(px) { \ argument
45 ++px[n0]; \
47 #define DEC(px) { \ argument
51 --px[n0]; \
67 px[n1] = 0x80000000, ++px[n0]; \
89 px[n1] = px[n2] = 0; in nextafterl()
90 px[n3] = 1; in nextafterl()
95 DEC(px) in nextafterl()
97 INC(px) in nextafterl()
100 DEC(px) in nextafterl()
[all …]
H A Disnanl.c37 int *px = (int *) &x; in isnanl() local
38 return ((px[0] & ~0x80000000) >= 0x7fff0000 && in isnanl()
39 ((px[0] & ~0xffff0000) | px[1] | px[2] | px[3]) != 0); in isnanl()
44 int *px = (int *) &x, t = px[2] & 0x7fff; in isnanl() local
46 return ((t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0) || in isnanl()
47 (t != 0 && (px[1] & 0x80000000) == 0)); in isnanl()
49 return (t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0); in isnanl()
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dnexttowardl.c41 #define INC(px) { \ argument
45 ++px[n0]; \
47 #define DEC(px) { \ argument
51 --px[n0]; \
67 px[n1] = 0x80000000, ++px[n0]; \
89 px[n1] = px[n2] = 0; in nexttowardl()
90 px[n3] = 1; in nexttowardl()
95 DEC(px) in nexttowardl()
97 INC(px) in nexttowardl()
100 DEC(px) in nexttowardl()
[all …]
H A Dscalbln.c43 ilogb_biased(unsigned *px) { in ilogb_biased() argument
45 unsigned v = px[HIWORD] & ~0x80000000, w = px[LOWORD], t = v; in ilogb_biased()
66 px[HIWORD] = (px[HIWORD] & 0x80000000) | v; in ilogb_biased()
67 px[LOWORD] = w; in ilogb_biased()
74 int *px = (int *) &x, ix, k; in scalbln() local
76 ix = px[HIWORD] & ~0x80000000; in scalbln()
85 if ((px[LOWORD] | ix) == 0 || n == 0) in scalbln()
90 k = ((px[HIWORD] & ~0x80000000) >> 20) - 52; in scalbln()
92 k = ilogb_biased((unsigned *) px); in scalbln()
101 px[HIWORD] = (px[HIWORD] & ~0x7ff00000) | (k << 20); in scalbln()
[all …]
H A Dscalblnf.c59 int *px = (int *) &x, ix, k; in scalblnf() local
61 ix = *px & ~0x80000000; in scalblnf()
74 k = ((*px & ~0x80000000) >> 23) - 23; in scalblnf()
77 *px = (*px & 0x80000000) | (ix << (-k + 1)); in scalblnf()
86 *px = (*px & ~0x7f800000) | (k << 23); in scalblnf()
90 *px = (*px & ~0x7f800000) | (k << 23); in scalblnf()
/illumos-gate/usr/src/uts/sparc/fpu/
H A Daddsub.c32 true_add(px, py, pz) in true_add() argument
40 py = px;
41 px = pt;
49 *pz = *px;
53 *pz = *px;
61 py = px;
62 px = pt;
102 py = px;
103 px = pt;
129 py = px;
[all …]
H A Dpack.c121 *px = 0; in packint32()
133 *px = -*px; in packint32()
140 *px = 0x80000000; in packint32()
142 *px = 0x7fffffff; in packint32()
162 *px = 0; in packint64()
177 *px = x.ll; in packint64()
179 *px = -*px; in packint64()
204 px->exponent = 0; in packsingle()
222 px->exponent = 0; in packsingle()
279 px->exponent = 0; in packdouble()
[all …]
H A Dcompare.c31 _fp_compare(pfpsd, px, py, strict) in _fp_compare() argument
33 unpacked *px, *py;
51 else if (px->sign < py->sign)
53 else if (px->sign > py->sign)
56 if ((int) px->fpclass > (int) py->fpclass)
58 else if ((int) px->fpclass < (int) py->fpclass)
61 /* same classes */ if (px->fpclass == fp_infinity)
63 else if (px->exponent > py->exponent)
65 else if (px->exponent < py->exponent)
68 n = fpu_cmpli(px->significand, py->significand, 4);
[all …]
H A Ddiv.c32 _fp_div(pfpsd, px, py, pz) in _fp_div() argument
34 unpacked *px, *py, *pz;
39 *pz = *px;
47 switch (px->fpclass) {
72 r[0] = px->significand[0];
162 _fp_sqrt(pfpsd, px, pz) in _fp_sqrt() argument
164 unpacked *px, *pz;
168 *pz = *px;
169 switch (px->fpclass) {
189 x = px->significand;
[all …]
/illumos-gate/usr/src/lib/libm/common/C/
H A Dscalbn.c46 ilogb_biased(unsigned *px) { in ilogb_biased() argument
48 unsigned v = px[HIWORD] & ~0x80000000, w = px[LOWORD], t = v; in ilogb_biased()
69 px[HIWORD] = (px[HIWORD] & 0x80000000) | v; in ilogb_biased()
70 px[LOWORD] = w; in ilogb_biased()
77 int *px, ix, hx, k; in scalbn() local
79 px = (int *)&x; in scalbn()
80 ix = px[HIWORD]; in scalbn()
88 if ((hx | px[LOWORD]) == 0 || n == 0) in scalbn()
92 ix = px[HIWORD]; in scalbn()
95 k = ilogb_biased((unsigned *)px); in scalbn()
[all …]
/illumos-gate/usr/src/common/crypto/ecc/
H A Decp.h53 mp_err ec_GFp_pt_is_inf_aff(const mp_int *px, const mp_int *py);
56 mp_err ec_GFp_pt_set_inf_aff(mp_int *px, mp_int *py);
60 mp_err ec_GFp_pt_add_aff(const mp_int *px, const mp_int *py,
65 mp_err ec_GFp_pt_sub_aff(const mp_int *px, const mp_int *py,
80 mp_err ec_GFp_pt_mul_aff(const mp_int *n, const mp_int *px,
92 mp_err ec_GFp_pt_jac2aff(const mp_int *px, const mp_int *py,
98 mp_err ec_GFp_pt_is_inf_jac(const mp_int *px, const mp_int *py,
103 mp_err ec_GFp_pt_set_inf_jac(mp_int *px, mp_int *py, mp_int *pz);
107 mp_err ec_GFp_pt_add_jac_aff(const mp_int *px, const mp_int *py,
113 mp_err ec_GFp_pt_dbl_jac(const mp_int *px, const mp_int *py,
[all …]
H A Dec2.h53 mp_err ec_GF2m_pt_is_inf_aff(const mp_int *px, const mp_int *py);
56 mp_err ec_GF2m_pt_set_inf_aff(mp_int *px, mp_int *py);
60 mp_err ec_GF2m_pt_add_aff(const mp_int *px, const mp_int *py,
65 mp_err ec_GF2m_pt_sub_aff(const mp_int *px, const mp_int *py,
81 mp_err ec_GF2m_pt_mul_aff(const mp_int *n, const mp_int *px,
89 mp_err ec_GF2m_pt_mul_mont(const mp_int *n, const mp_int *px,
101 mp_err ec_GF2m_pt_proj2aff(const mp_int *px, const mp_int *py,
107 mp_err ec_GF2m_pt_is_inf_proj(const mp_int *px, const mp_int *py,
116 mp_err ec_GF2m_pt_add_proj(const mp_int *px, const mp_int *py,
122 mp_err ec_GF2m_pt_dbl_proj(const mp_int *px, const mp_int *py,
[all …]
H A Decp_aff.c75 mp_zero(px); in ec_GFp_pt_set_inf_aff()
97 MP_CHECKOK(mp_init(&temp, FLAG(px))); in ec_GFp_pt_add_aff()
98 MP_CHECKOK(mp_init(&tempx, FLAG(px))); in ec_GFp_pt_add_aff()
99 MP_CHECKOK(mp_init(&tempy, FLAG(px))); in ec_GFp_pt_add_aff()
109 MP_CHECKOK(mp_copy(px, rx)); in ec_GFp_pt_add_aff()
115 if (mp_cmp(px, qx) != 0) { in ec_GFp_pt_add_aff()
179 MP_CHECKOK(mp_init(&nqy, FLAG(px))); in ec_GFp_pt_sub_aff()
195 return ec_GFp_pt_add_aff(px, py, px, py, rx, ry, group); in ec_GFp_pt_dbl_aff()
233 MP_CHECKOK(mp_copy(px, &qx)); in ec_GFp_pt_mul_aff()
322 if ((MP_SIGN(px) == MP_NEG) || (mp_cmp(px, &group->meth->irr) >= 0) || in ec_GFp_validate_point()
[all …]
H A Dec2_aff.c71 mp_zero(px); in ec_GF2m_pt_set_inf_aff()
90 MP_CHECKOK(mp_init(&tempx, FLAG(px))); in ec_GF2m_pt_add_aff()
91 MP_CHECKOK(mp_init(&tempy, FLAG(px))); in ec_GF2m_pt_add_aff()
101 MP_CHECKOK(mp_copy(px, rx)); in ec_GF2m_pt_add_aff()
108 if (mp_cmp(px, qx) != 0) { in ec_GF2m_pt_add_aff()
169 MP_CHECKOK(mp_init(&nqy, FLAG(px))); in ec_GF2m_pt_sub_aff()
184 return group->point_add(px, py, px, py, rx, ry, group); in ec_GF2m_pt_dbl_aff()
220 MP_CHECKOK(mp_copy(px, &qx)); in ec_GF2m_pt_mul_aff()
297 MP_CHECKOK(mp_init(&tmp, FLAG(px))); in ec_GF2m_validate_point()
309 if ((MP_SIGN(px) == MP_NEG) || (mp_cmp(px, &group->meth->irr) >= 0) || in ec_GF2m_validate_point()
[all …]
H A Decp_jac.c74 MP_CHECKOK(mp_copy(px, rx)); in ec_GFp_pt_aff2jac()
99 MP_CHECKOK(mp_init(&z1, FLAG(px))); in ec_GFp_pt_jac2aff()
100 MP_CHECKOK(mp_init(&z2, FLAG(px))); in ec_GFp_pt_jac2aff()
101 MP_CHECKOK(mp_init(&z3, FLAG(px))); in ec_GFp_pt_jac2aff()
111 MP_CHECKOK(mp_copy(px, rx)); in ec_GFp_pt_jac2aff()
166 MP_CHECKOK(mp_init(&A, FLAG(px))); in ec_GFp_pt_add_jac_aff()
167 MP_CHECKOK(mp_init(&B, FLAG(px))); in ec_GFp_pt_add_jac_aff()
168 MP_CHECKOK(mp_init(&C, FLAG(px))); in ec_GFp_pt_add_jac_aff()
169 MP_CHECKOK(mp_init(&D, FLAG(px))); in ec_GFp_pt_add_jac_aff()
180 MP_CHECKOK(mp_copy(px, rx)); in ec_GFp_pt_add_jac_aff()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Dsupport.c123 if( k < (mexp>>gap) ) *px = (*px&~mexp) | (k<<gap);
128 {*px=(*px&~mexp)|(short)(1<<gap); x *= scalb(1.0,k-1);}
164 *px = ( *px & msign ) | ( *py & ~msign );
187 short *px=(short *) &x+3, k; variable
189 short *px=(short *) &x, k;
269 if( ( *px & mexp ) == mexp )
296 sign= *px & ~msign ;
297 *px &= msign ;
318 *px ^= sign;
465 px[n0] &= 0x7fff;
[all …]
/illumos-gate/usr/src/lib/libmvec/common/
H A D__vrsqrt.c126 spx = px; in __vrsqrt()
128 hx = HI(px); in __vrsqrt()
190 hx = HI(px); in __vrsqrt()
197 hx = HI(px); in __vrsqrt()
201 res = *px; in __vrsqrt()
207 lx = LO(px); in __vrsqrt()
208 res = *px; in __vrsqrt()
311 hx0 = HI(px); in __vrsqrt_n()
315 hx1 = HI(px); in __vrsqrt_n()
319 hx2 = HI(px); in __vrsqrt_n()
[all …]
H A D__vrsqrtf.c251 spx = px; in __vrsqrtf()
253 ax0 = *(int*)px; in __vrsqrtf()
256 px += stridex; in __vrsqrtf()
319 ax0 = *(int*)px; in __vrsqrtf()
323 res = *px; in __vrsqrtf()
328 res = *px; in __vrsqrtf()
421 ax0 = *(int*)px; in __vrsqrtf_n()
422 px += stridex; in __vrsqrtf_n()
425 px += stridex; in __vrsqrtf_n()
428 px += stridex; in __vrsqrtf_n()
[all …]
H A D__vrhypotf.c261 spx = px; in __vrhypotf()
271 px += stridex; in __vrhypotf()
305 x0 = *px; in __vrhypotf()
366 x0 = *px; in __vrhypotf_n()
367 px += stridex; in __vrhypotf_n()
368 x1 = *px; in __vrhypotf_n()
369 px += stridex; in __vrhypotf_n()
370 x2 = *px; in __vrhypotf_n()
371 px += stridex; in __vrhypotf_n()
434 x0 = *px; in __vrhypotf_n()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Djobs.c546 if(px && pw != px) in job_reap()
551 for(; px && (px->p_flag&P_DONE); px=px->p_nxtproc); in job_reap()
1012 sfprintf(outfile,"%d\n",px->p_pgrp?px->p_pgrp:px->p_pid); in job_list()
1063 px = px->p_nxtproc; in job_list()
1066 while(px=px->p_nxtproc) in job_list()
1238 for (px = pw; px != NULL; px = px->p_nxtproc) { in job_hup()
1488 for(px=pw; px; px=px->p_nxtproc) in job_bypid()
1607 for(px=job.pwlist;px; px = px->p_nxtjob) in job_wait()
1828 if(px->p_fgrp != px->p_pgrp) in job_unstop()
1906 for(px=job.pwlist;px;px=px->p_nxtjob) in job_unlink()
[all …]
/illumos-gate/usr/src/lib/libm/common/R/
H A Dscalbnf.c60 int *px = (int *) &x, ix, k; in scalbnf() local
62 ix = *px & ~0x80000000; in scalbnf()
75 k = ((*px & ~0x80000000) >> 23) - 23; in scalbnf()
78 *px = (*px & 0x80000000) | (ix << (-k + 1)); in scalbnf()
89 *px = (*px & ~0x7f800000) | (k << 23); in scalbnf()
93 *px = (*px & ~0x7f800000) | (k << 23); in scalbnf()
/illumos-gate/usr/src/lib/libc/port/fp/
H A Ddecimal_bin.c154 px->sign = pd->sign; in __decimal_to_unpacked()
155 px->fpclass = pd->fpclass; in __decimal_to_unpacked()
167 px->fpclass = fp_zero; in __decimal_to_unpacked()
255 px->significand[4] |= 1; in __decimal_to_unpacked()
258 px->significand[4] |= 1; in __decimal_to_unpacked()
263 px->significand[0] = (px->significand[0] << 1) | in __decimal_to_unpacked()
265 px->significand[1] = (px->significand[1] << 1) | in __decimal_to_unpacked()
267 px->significand[2] = (px->significand[2] << 1) | in __decimal_to_unpacked()
269 px->significand[3] = (px->significand[3] << 1) | in __decimal_to_unpacked()
271 px->significand[4] <<= 1; in __decimal_to_unpacked()
[all …]

123456