Home
last modified time | relevance | path

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

1234567

/titanic_50/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()
/titanic_50/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()
/titanic_50/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 …]
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A D_Qfaddsub.c32 true_add(px, py, pz) in true_add() argument
33 unpacked *px, *py, *pz; in true_add()
39 if ((int) px->fpclass < (int) py->fpclass) { /* Reverse. */
41 py = px;
42 px = pt;
45 switch (px->fpclass) {
50 *pz = *px;
54 *pz = *px;
60 if (px->exponent < py->exponent) { /* Reverse. */
62 py = px;
[all …]
H A D_Qfpack.c110 packinteger(pu, px) in packinteger() argument
112 int *px; /* packed integer */
116 *px = 0;
126 *px = pu->significand[3];
128 *px = -*px;
135 *px = 0x80000000;
137 *px = 0x7fffffff;
145 packsingle(pu, px) in packsingle() argument
147 single_type *px; /* packed single */
149 px->sign = pu->sign;
[all …]
H A Dfmod.c45 long *px = (long *) &x; in copysign() local
47 px[n0] = (px[n0] & 0x7fffffff) | (py[n0] & 0x80000000); in copysign()
54 long *px = (long *) &x; in fabs() local
55 px[0] &= 0x7fffffff; in fabs()
63 long *px = (long *) &x; in finite() local
64 return ((px[n0] & 0x7ff00000) != 0x7ff00000); in finite()
70 long *px = (long *) &x, k; in ilogb() local
71 k = px[n0] & 0x7ff00000; in ilogb()
73 if ((px[n1] | (px[n0] & 0x7fffffff)) == 0) in ilogb()
77 return ((px[n0] & 0x7ff00000) >> 20) - 1075; in ilogb()
[all …]
H A D_Qfcompare.c32 _fp_compare(px, py, strict) in _fp_compare() argument
33 unpacked *px, *py; in _fp_compare()
41 if ((px->fpclass == fp_quiet) || (py->fpclass == fp_quiet) ||
42 (px->fpclass == fp_signaling) || (py->fpclass == fp_signaling)) {
46 } else if ((px->fpclass == fp_zero) && (py->fpclass == fp_zero))
49 else if (px->sign < py->sign)
51 else if (px->sign > py->sign)
54 if ((int) px->fpclass > (int) py->fpclass)
56 else if ((int) px->fpclass < (int) py->fpclass)
59 /* same classes */ if (px->fpclass == fp_infinity)
[all …]
H A Dfloat_decim.c37 single_to_decimal(px, pm, pd, ps) in single_to_decimal() argument
38 single *px; in single_to_decimal()
47 kluge.x = *px;
49 pd->fpclass = _class_single(px);
66 extended_to_decimal(px, pm, pd, ps) in extended_to_decimal() argument
67 extended *px; in extended_to_decimal()
76 kluge.x[0] = (*px)[0];
77 kluge.x[1] = (*px)[1];
78 kluge.x[2] = (*px)[2];
80 pd->fpclass = _class_extended(px);
[all …]
/titanic_50/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 …]
/titanic_50/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 …]
/titanic_50/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,
70 mp_err ec_GFp_pt_dbl_aff(const mp_int *px, const mp_int *py, mp_int *rx,
74 mp_err ec_GFp_validate_point(const mp_int *px, const mp_int *py, const ECGroup *group);
80 mp_err ec_GFp_pt_mul_aff(const mp_int *n, const mp_int *px,
87 mp_err ec_GFp_pt_aff2jac(const mp_int *px, const mp_int *py, mp_int *rx,
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,
[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,
70 mp_err ec_GF2m_pt_dbl_aff(const mp_int *px, const mp_int *py, mp_int *rx,
74 mp_err ec_GF2m_validate_point(const mp_int *px, const mp_int *py, const ECGroup *group);
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,
96 mp_err ec_GF2m_pt_aff2proj(const mp_int *px, const mp_int *py, mp_int *rx,
101 mp_err ec_GF2m_pt_proj2aff(const mp_int *px, const mp_int *py,
[all …]
H A Decp_aff.c60 ec_GFp_pt_is_inf_aff(const mp_int *px, const mp_int *py) in ec_GFp_pt_is_inf_aff() argument
63 if ((mp_cmp_z(px) == 0) && (mp_cmp_z(py) == 0)) { in ec_GFp_pt_is_inf_aff()
73 ec_GFp_pt_set_inf_aff(mp_int *px, mp_int *py) in ec_GFp_pt_set_inf_aff() argument
75 mp_zero(px); in ec_GFp_pt_set_inf_aff()
85 ec_GFp_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx, in ec_GFp_pt_add_aff() argument
96 MP_CHECKOK(mp_init(&lambda, FLAG(px))); in ec_GFp_pt_add_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()
101 if (ec_GFp_pt_is_inf_aff(px, py) == 0) { in ec_GFp_pt_add_aff()
[all …]
H A Dec2_aff.c56 ec_GF2m_pt_is_inf_aff(const mp_int *px, const mp_int *py) in ec_GF2m_pt_is_inf_aff() argument
59 if ((mp_cmp_z(px) == 0) && (mp_cmp_z(py) == 0)) { in ec_GF2m_pt_is_inf_aff()
69 ec_GF2m_pt_set_inf_aff(mp_int *px, mp_int *py) in ec_GF2m_pt_set_inf_aff() argument
71 mp_zero(px); in ec_GF2m_pt_set_inf_aff()
79 ec_GF2m_pt_add_aff(const mp_int *px, const mp_int *py, const mp_int *qx, in ec_GF2m_pt_add_aff() argument
89 MP_CHECKOK(mp_init(&lambda, FLAG(px))); in ec_GF2m_pt_add_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()
93 if (ec_GF2m_pt_is_inf_aff(px, py) == 0) { in ec_GF2m_pt_add_aff()
101 MP_CHECKOK(mp_copy(px, rx)); in ec_GF2m_pt_add_aff()
[all …]
/titanic_50/usr/src/lib/libast/common/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 …]
/titanic_50/usr/src/lib/libshell/common/sh/
H A Djobs.c248 struct process *px; in job_reap() local
315 px = 0; in job_reap()
324 px=job_byjid(pw->p_job); in job_reap()
327 if(px) in job_reap()
330 job_unlink(px); in job_reap()
331 px->p_nxtjob = job.pwlist; in job_reap()
332 job.pwlist = px; in job_reap()
411 if(px && pw != px) in job_reap()
415 px = job_byjid((int)pw->p_job); in job_reap()
416 for(; px && (px->p_flag&P_DONE); px=px->p_nxtproc); in job_reap()
[all …]
/titanic_50/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__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 …]
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 …]

1234567