Home
last modified time | relevance | path

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

12345

/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
43 return ((unsigned) ((px[0] & 0x7fff0000) - 0x10000) < 0x7ffe0000); in isnormall()
48 int *px = (int *) &x; in issubnormall() local
49 px[0] &= ~0x80000000; in issubnormall()
50 return (px[0] < 0x00010000 && (px[0] | px[1] | px[2] | px[3]) != 0); in issubnormall()
55 int *px = (int *) &x; in iszerol() local
56 return (((px[0] & ~0x80000000) | px[1] | px[2] | px[3]) == 0); in iszerol()
[all …]
H A Dnextafterl.c41 #define INC(px) { \ argument
42 if (++px[n3] == 0) \
43 if (++px[n2] == 0) \
44 if (++px[n1] == 0) \
45 ++px[n0]; \
47 #define DEC(px) { \ argument
48 if (--px[n3] == 0xffffffff) \
49 if (--px[n2] == 0xffffffff) \
50 if (--px[n1] == 0xffffffff) \
51 --px[n0]; \
[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
42 if (++px[n3] == 0) \
43 if (++px[n2] == 0) \
44 if (++px[n1] == 0) \
45 ++px[n0]; \
47 #define DEC(px) { \ argument
48 if (--px[n3] == 0xffffffff) \
49 if (--px[n2] == 0xffffffff) \
50 if (--px[n1] == 0xffffffff) \
51 --px[n0]; \
[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()
80 return ((px[HIWORD] & 0x80000) != 0 ? x : x + x); 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()
[all …]
/illumos-gate/usr/src/lib/libm/common/LD/
H A Dnextafterl.c41 #define INC(px) { \ argument
42 if (++px[n3] == 0) \
43 if (++px[n2] == 0) \
44 if (++px[n1] == 0) \
45 ++px[n0]; \
47 #define DEC(px) { \ argument
48 if (--px[n3] == 0xffffffff) \
49 if (--px[n2] == 0xffffffff) \
50 if (--px[n1] == 0xffffffff) \
51 --px[n0]; \
[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/uts/sparc/fpu/
H A Daddsub.c32 true_add(px, py, pz) in true_add() argument
33 unpacked *px, *py, *pz; in true_add()
38 if ((int) px->fpclass <= (int) py->fpclass) { /* Reverse. */
40 py = px;
41 px = pt;
44 switch (px->fpclass) {
49 *pz = *px;
53 *pz = *px;
59 if (px->exponent < py->exponent) { /* Reverse. */
61 py = px;
[all …]
H A Dpack.c117 int32_t *px) /* packed int32_t */ in packint32() argument
121 *px = 0; in packint32()
131 *px = pu->significand[3]; in packint32()
133 *px = -*px; in packint32()
140 *px = 0x80000000; in packint32()
142 *px = 0x7fffffff; in packint32()
153 int64_t *px) /* packed int64_t */ in packint64() argument
162 *px = 0; in packint64()
177 *px = x.ll; in packint64()
179 *px = -*px; in packint64()
[all …]
H A Dcompare.c31 _fp_compare(pfpsd, px, py, strict) in _fp_compare() argument
33 unpacked *px, *py;
43 if ((px->fpclass == fp_quiet) || (py->fpclass == fp_quiet) ||
44 (px->fpclass == fp_signaling) || (py->fpclass == fp_signaling)) {
48 } else if ((px->fpclass == fp_zero) && (py->fpclass == fp_zero))
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)
[all …]
H A Ddiv.c32 _fp_div(pfpsd, px, py, pz) in _fp_div() argument
34 unpacked *px, *py, *pz;
39 *pz = *px;
41 if ((py->fpclass >= fp_quiet) || (px->fpclass >= fp_quiet)) {
42 if (py->fpclass >= px->fpclass) *pz = *py;
46 pz->sign = px->sign ^ py->sign;
47 switch (px->fpclass) {
53 if (px->fpclass == py->fpclass) { /* 0/0 or inf/inf */
72 r[0] = px->significand[0];
73 r[1] = px->significand[1];
[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/contrib/ast/src/lib/libast/uwin/
H A Dsupport.c101 unsigned short *px=(unsigned short *) &x + 3; variable
103 unsigned short *px=(unsigned short *) &x; variable
109 if( (k= *px & mexp ) != ~msign ) {
116 if( (k= *px & mexp ) != mexp ) {
123 if( k < (mexp>>gap) ) *px = (*px&~mexp) | (k<<gap);
128 {*px=(*px&~mexp)|(short)(1<<gap); x *= scalb(1.0,k-1);}
153 unsigned short *px=(unsigned short *) &x+3, variable
156 unsigned short *px=(unsigned short *) &x,
161 if ( (*px & mexp) == 0 ) return(x);
164 *px = ( *px & msign ) | ( *py & ~msign );
[all …]
/illumos-gate/usr/src/common/crypto/ecc/
H A Decp.h51 mp_err ec_GFp_pt_is_inf_aff(const mp_int *px, const mp_int *py);
54 mp_err ec_GFp_pt_set_inf_aff(mp_int *px, mp_int *py);
58 mp_err ec_GFp_pt_add_aff(const mp_int *px, const mp_int *py,
63 mp_err ec_GFp_pt_sub_aff(const mp_int *px, const mp_int *py,
68 mp_err ec_GFp_pt_dbl_aff(const mp_int *px, const mp_int *py, mp_int *rx,
72 mp_err ec_GFp_validate_point(const mp_int *px, const mp_int *py, const ECGroup *group);
78 mp_err ec_GFp_pt_mul_aff(const mp_int *n, const mp_int *px,
85 mp_err ec_GFp_pt_aff2jac(const mp_int *px, const mp_int *py, mp_int *rx,
90 mp_err ec_GFp_pt_jac2aff(const mp_int *px, const mp_int *py,
96 mp_err ec_GFp_pt_is_inf_jac(const mp_int *px, const mp_int *py,
[all …]
H A Decp_aff.c58 ec_GFp_pt_is_inf_aff(const mp_int *px, const mp_int *py) in ec_GFp_pt_is_inf_aff() argument
61 if ((mp_cmp_z(px) == 0) && (mp_cmp_z(py) == 0)) { in ec_GFp_pt_is_inf_aff()
71 ec_GFp_pt_set_inf_aff(mp_int *px, mp_int *py) in ec_GFp_pt_set_inf_aff() argument
73 mp_zero(px); in ec_GFp_pt_set_inf_aff()
83 ec_GFp_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx, in ec_GFp_pt_add_aff() argument
94 MP_CHECKOK(mp_init(&lambda, FLAG(px))); in ec_GFp_pt_add_aff()
95 MP_CHECKOK(mp_init(&temp, FLAG(px))); in ec_GFp_pt_add_aff()
96 MP_CHECKOK(mp_init(&tempx, FLAG(px))); in ec_GFp_pt_add_aff()
97 MP_CHECKOK(mp_init(&tempy, FLAG(px))); in ec_GFp_pt_add_aff()
99 if (ec_GFp_pt_is_inf_aff(px, py) == 0) { in ec_GFp_pt_add_aff()
[all …]
H A Dec2.h51 mp_err ec_GF2m_pt_is_inf_aff(const mp_int *px, const mp_int *py);
54 mp_err ec_GF2m_pt_set_inf_aff(mp_int *px, mp_int *py);
58 mp_err ec_GF2m_pt_add_aff(const mp_int *px, const mp_int *py,
63 mp_err ec_GF2m_pt_sub_aff(const mp_int *px, const mp_int *py,
68 mp_err ec_GF2m_pt_dbl_aff(const mp_int *px, const mp_int *py, mp_int *rx,
72 mp_err ec_GF2m_validate_point(const mp_int *px, const mp_int *py, const ECGroup *group);
79 mp_err ec_GF2m_pt_mul_aff(const mp_int *n, const mp_int *px,
87 mp_err ec_GF2m_pt_mul_mont(const mp_int *n, const mp_int *px,
94 mp_err ec_GF2m_pt_aff2proj(const mp_int *px, const mp_int *py, mp_int *rx,
99 mp_err ec_GF2m_pt_proj2aff(const mp_int *px, const mp_int *py,
[all …]
H A Dec2_aff.c54 ec_GF2m_pt_is_inf_aff(const mp_int *px, const mp_int *py) in ec_GF2m_pt_is_inf_aff() argument
57 if ((mp_cmp_z(px) == 0) && (mp_cmp_z(py) == 0)) { in ec_GF2m_pt_is_inf_aff()
67 ec_GF2m_pt_set_inf_aff(mp_int *px, mp_int *py) in ec_GF2m_pt_set_inf_aff() argument
69 mp_zero(px); in ec_GF2m_pt_set_inf_aff()
77 ec_GF2m_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx, in ec_GF2m_pt_add_aff() argument
87 MP_CHECKOK(mp_init(&lambda, FLAG(px))); in ec_GF2m_pt_add_aff()
88 MP_CHECKOK(mp_init(&tempx, FLAG(px))); in ec_GF2m_pt_add_aff()
89 MP_CHECKOK(mp_init(&tempy, FLAG(px))); in ec_GF2m_pt_add_aff()
91 if (ec_GF2m_pt_is_inf_aff(px, py) == 0) { in ec_GF2m_pt_add_aff()
99 MP_CHECKOK(mp_copy(px, rx)); in ec_GF2m_pt_add_aff()
[all …]
H A Decp_jac.c64 ec_GFp_pt_aff2jac(const mp_int *px, const mp_int *py, mp_int *rx, in ec_GFp_pt_aff2jac() argument
69 if (ec_GFp_pt_is_inf_aff(px, py) == MP_YES) { in ec_GFp_pt_aff2jac()
72 MP_CHECKOK(mp_copy(px, rx)); in ec_GFp_pt_aff2jac()
88 ec_GFp_pt_jac2aff(const mp_int *px, const mp_int *py, const mp_int *pz, in ec_GFp_pt_jac2aff() argument
97 MP_CHECKOK(mp_init(&z1, FLAG(px))); in ec_GFp_pt_jac2aff()
98 MP_CHECKOK(mp_init(&z2, FLAG(px))); in ec_GFp_pt_jac2aff()
99 MP_CHECKOK(mp_init(&z3, FLAG(px))); in ec_GFp_pt_jac2aff()
102 if (ec_GFp_pt_is_inf_jac(px, py, pz) == MP_YES) { in ec_GFp_pt_jac2aff()
109 MP_CHECKOK(mp_copy(px, rx)); in ec_GFp_pt_jac2aff()
115 MP_CHECKOK(group->meth->field_mul(px, &z2, rx, group->meth)); in ec_GFp_pt_jac2aff()
[all …]
/illumos-gate/usr/src/lib/libmvec/common/
H A D__vrsqrt.c89 __vrsqrt_n(int n, double * restrict px, int stridex, double * restrict py, int stridey);
99 spx = px; spy = py; \
100 hx = HI(px); \
117 __vrsqrt(int n, double * restrict px, int stridex, double * restrict py, int stridey) in __vrsqrt() argument
126 spx = px; in __vrsqrt()
128 hx = HI(px); in __vrsqrt()
131 px += stridex; in __vrsqrt()
134 res = *(px - stridex); in __vrsqrt()
144 lx = LO((px - stridex)); in __vrsqrt()
145 res = *(px - stridex); in __vrsqrt()
[all …]
H A D__vrsqrtf.c222 __vrsqrtf_n(int n, float * restrict px, int stridex, float * restrict py, int stridey);
232 spx = px; spy = py; \
233 ax0 = *(int*)px; \
241 __vrsqrtf(int n, float * restrict px, int stridex, float * restrict py, int stridey) in __vrsqrtf() argument
251 spx = px; in __vrsqrtf()
253 ax0 = *(int*)px; in __vrsqrtf()
256 px += stridex; in __vrsqrtf()
259 res = *(px - stridex); in __vrsqrtf()
268 res = *(px - stridex); in __vrsqrtf()
311 ax0 = *(int*)px; in __vrsqrtf()
[all …]
H A D__vrhypotf.c230 __vrhypotf_n(int n, float * restrict px, int stridex, float * restrict py,
241 spx = px; spy = py; spz = pz; \
251 __vrhypotf(int n, float * restrict px, int stridex, float * restrict py, in __vrhypotf() argument
261 spx = px; in __vrhypotf()
264 ax0 = *(int*)px; in __vrhypotf()
271 px += stridex; in __vrhypotf()
275 x0 = *(px - stridex); in __vrhypotf()
280 ax0 = *(int*)px; in __vrhypotf()
284 ax0 = *(int*)px; in __vrhypotf()
288 int tx = *(int*)(px - stridex) & 0x7fffffff; in __vrhypotf()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Djobs.c342 struct process *px; in job_reap() local
450 px = 0; in job_reap()
459 px=job_byjid(pw->p_job); in job_reap()
468 if(px) in job_reap()
471 job_unlink(px); in job_reap()
472 px->p_nxtjob = job.pwlist; in job_reap()
473 job.pwlist = px; in job_reap()
546 if(px && pw != px) in job_reap()
550 px = job_byjid((int)pw->p_job); in job_reap()
551 for(; px && (px->p_flag&P_DONE); px=px->p_nxtproc); in job_reap()
[all …]
/illumos-gate/usr/src/lib/libc/port/fp/
H A Ddecimal_bin.c145 __decimal_to_unpacked(unpacked *px, decimal_record *pd, int sigbits) in __decimal_to_unpacked() argument
152 px->sign = pd->sign; in __decimal_to_unpacked()
153 px->fpclass = pd->fpclass; in __decimal_to_unpacked()
165 px->fpclass = fp_zero; in __decimal_to_unpacked()
239 px->significand[ix++] = (pbb->bsignificand[i] << 16) | in __decimal_to_unpacked()
245 px->significand[ix++] = pbb->bsignificand[i] << 16; in __decimal_to_unpacked()
247 px->significand[ix++] = 0; in __decimal_to_unpacked()
253 px->significand[4] |= 1; in __decimal_to_unpacked()
256 px->significand[4] |= 1; in __decimal_to_unpacked()
257 px->exponent = pbb->bexponent + (pbb->blength << 4) - 1; in __decimal_to_unpacked()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsggen.c135 register Xl_t* px; in translation() local
155 for (px = xp; px; px = px->next) in translation()
156 if (streq(px->name, s)) in translation()
158 if (strcoll(px->date, d) < 0) in translation()
160 free(px->date); in translation()
161 if (!(px->date = strdup(d))) in translation()
166 if (!px) in translation()
168 if (!(px = newof(0, Xl_t, 1, strlen(s))) || !(px->date = strdup(d))) in translation()
170 strcpy(px->name, s); in translation()
171 px->next = xp; in translation()
[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()

12345