Searched refs:xm (Results 1 - 25 of 37) sorted by last modified time

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/mips/math-emu/
H A Ddp_add.c126 assert(xm & DP_HIDDEN_BIT);
130 xm <<= 3;
143 xm = XDPSRS(xm, s);
151 * leaving result in xm,xs,xe
153 xm = xm + ym;
157 if (xm >> (DP_MBITS + 1 + 3)) { /* carry out */
158 xm = XDPSRS1(xm);
[all...]
H A Ddp_div.c119 assert(xm & DP_HIDDEN_BIT);
123 xm <<= 3;
134 if (xm >= ym) {
135 xm -= ym;
137 if (xm == 0)
140 xm <<= 1;
143 if (xm)
H A Ddp_fint.c32 u64 xm; local
48 xm = ((unsigned) 1 << 31); /* max neg can't be safely negated */
50 xm = -x;
52 xm = x;
57 while ((xm >> DP_MBITS) == 0) {
58 xm <<= 1;
61 return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT);
H A Ddp_flong.c32 u64 xm; local
48 xm = (1ULL << 63); /* max neg can't be safely negated */
50 xm = -x;
52 xm = x;
57 if (xm >> (DP_MBITS + 1 + 3)) {
59 while (xm >> (DP_MBITS + 1 + 3)) {
64 while ((xm >> (DP_MBITS + 3)) == 0) {
65 xm <<= 1;
69 DPNORMRET1(xs, xe, xm, "dp_flong", x);
H A Ddp_frexp.c52 return builddp(xs, -1 + DP_EBIAS, xm & ~DP_HIDDEN_BIT);
H A Ddp_fsp.c47 ((u64) xm
57 while ((xm >> SP_MBITS) == 0) {
58 xm <<= 1;
70 xm &= ~SP_HIDDEN_BIT;
73 (u64) xm << (DP_MBITS - SP_MBITS));
H A Ddp_modf.c65 ((xm >> (DP_MBITS - xe)) << (DP_MBITS - xe)) &
71 xm = (xm << (64 - (DP_MBITS - xe))) >> (64 - (DP_MBITS - xe));
72 if (xm == 0)
75 while ((xm >> DP_MBITS) == 0) {
76 xm <<= 1;
79 return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT);
H A Ddp_mul.c108 /* rm = xm * ym, re = xe+ye basicly */
109 assert(xm & DP_HIDDEN_BIT);
117 xm <<= 64 - (DP_MBITS + 1);
120 /* multiply 32bits xm,ym to give high 32bits rm with stickness
127 unsigned lxm = xm;
128 unsigned hxm = xm >> 32;
H A Ddp_scalb.c51 DPNORMRET2(xs, xe + n, xm << 3, "scalb", x, n);
H A Ddp_sqrt.c96 y = x = builddp(0, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT);
H A Ddp_sub.c121 /* normalize xm,xe */
131 assert(xm & DP_HIDDEN_BIT);
136 xm <<= 3;
149 xm = XDPSRS(xm, s);
158 xm = xm + ym;
162 if (xm >> (DP_MBITS + 1 + 3)) { /* carry out */
163 xm = XDPSRS1(xm); /* shif
[all...]
H A Ddp_tint.c60 xm <<= xe - DP_MBITS;
68 residue = xm;
71 xm = 0;
74 residue = xm << (64 - DP_MBITS + xe);
77 xm >>= DP_MBITS - xe;
79 /* Note: At this point upper 32 bits of xm are guaranteed
81 odd = (xm & 0x1) != 0x0;
85 xm++;
91 xm++;
95 xm
[all...]
H A Ddp_tlong.c53 if (xe == 63 && xs && xm == DP_HIDDEN_BIT)
62 xm <<= xe - DP_MBITS;
70 residue = xm;
73 xm = 0;
79 residue = xm << (xe + 1);
83 xm >>= DP_MBITS - xe;
85 odd = (xm & 0x1) != 0x0;
89 xm++;
95 xm++;
99 xm
[all...]
H A Dieee754dp.c101 static u64 get_rounding(int sn, u64 xm) argument
105 if (xm & (DP_MBIT(3) - 1)) {
110 xm += 0x3 + ((xm >> 3) & 1);
111 /* xm += (xm&0x8)?0x4:0x3 */
115 xm += 0x8;
119 xm += 0x8;
123 return xm;
130 * xm i
132 ieee754dp_format(int sn, int xe, u64 xm) argument
[all...]
H A Dieee754dp.h38 (xe++, (xm = (xm >> 1) | (xm & 1)))
46 #define DPDNORMX DPDNORMx(xm,xe)
H A Dieee754int.h74 unsigned xm; int xe; int xs; int xc
103 #define EXPLODEXSP EXPLODESP(x,xc,xs,xe,xm)
108 u64 xm; int xe; int xs; int xc
137 #define EXPLODEXDP EXPLODEDP(x,xc,xs,xe,xm)
162 #define FLUSHXDP FLUSHDP(x,xc,xs,xe,xm)
164 #define FLUSHXSP FLUSHSP(x,xc,xs,xe,xm)
H A Dieee754sp.c102 static unsigned get_rounding(int sn, unsigned xm) argument
106 if (xm & (SP_MBIT(3) - 1)) {
111 xm += 0x3 + ((xm >> 3) & 1);
112 /* xm += (xm&0x8)?0x4:0x3 */
116 xm += 0x8;
120 xm += 0x8;
124 return xm;
131 * xm i
133 ieee754sp_format(int sn, int xe, unsigned xm) argument
[all...]
H A Dieee754sp.h36 xm = (rs > (SP_MBITS+3))?1:((xm) >> (rs)) | ((xm) << (32-(rs)) != 0))
39 (xe++, (xm = (xm >> 1) | (xm & 1)))
51 #define SPDNORMX SPDNORMx(xm,xe)
H A Dsp_add.c123 assert(xm & SP_HIDDEN_BIT);
127 xm <<= 3;
146 * leaving result in xm,xs,xe
148 xm = xm + ym;
152 if (xm >> (SP_MBITS + 1 + 3)) { /* carry out */
156 if (xm >= ym) {
157 xm = xm - ym;
161 xm
[all...]
H A Dsp_div.c119 assert(xm & SP_HIDDEN_BIT);
123 xm <<= 3;
134 if (xm >= ym) {
135 xm -= ym;
137 if (xm == 0)
140 xm <<= 1;
143 if (xm)
H A Dsp_fdp.c47 (xm >> (DP_MBITS - SP_MBITS)));
72 rm = (xm >> (DP_MBITS - (SP_MBITS + 3))) |
73 ((xm << (64 - (DP_MBITS - (SP_MBITS + 3)))) != 0);
H A Dsp_fint.c32 unsigned xm; local
48 xm = ((unsigned) 1 << 31); /* max neg can't be safely negated */
50 xm = -x;
52 xm = x;
56 if (xm >> (SP_MBITS + 1 + 3)) {
59 while (xm >> (SP_MBITS + 1 + 3)) {
65 while ((xm >> (SP_MBITS + 3)) == 0) {
66 xm <<= 1;
70 SPNORMRET1(xs, xe, xm, "fint", x);
H A Dsp_flong.c32 u64 xm; /* <--- need 64-bit mantissa temp */ local
48 xm = (1ULL << 63); /* max neg can't be safely negated */
50 xm = -x;
52 xm = x;
56 if (xm >> (SP_MBITS + 1 + 3)) {
59 while (xm >> (SP_MBITS + 1 + 3)) {
64 while ((xm >> (SP_MBITS + 3)) == 0) {
65 xm <<= 1;
69 SPNORMRET1(xs, xe, xm, "sp_flong", x);
H A Dsp_frexp.c52 return buildsp(xs, -1 + SP_EBIAS, xm & ~SP_HIDDEN_BIT);
H A Dsp_modf.c65 ((xm >> (SP_MBITS - xe)) << (SP_MBITS - xe)) &
71 xm = (xm << (32 - (SP_MBITS - xe))) >> (32 - (SP_MBITS - xe));
72 if (xm == 0)
75 while ((xm >> SP_MBITS) == 0) {
76 xm <<= 1;
79 return buildsp(xs, xe + SP_EBIAS, xm & ~SP_HIDDEN_BIT);

Completed in 177 milliseconds

12