• Home
  • Raw
  • Download

Lines Matching refs:e

56    spx_int16_t e;  member
66 int e=0; in PSEUDOFLOAT() local
78 e = spx_ilog2(ABS32(x))-14; in PSEUDOFLOAT()
79 x = VSHR32(x, e); in PSEUDOFLOAT()
84 r.e = e; in PSEUDOFLOAT()
91 r.e = e; in PSEUDOFLOAT()
104 if ((a).e > (b).e) in FLOAT_ADD()
106 r.m = ((a).m>>1) + ((b).m>>MIN(15,(a).e-(b).e+1)); in FLOAT_ADD()
107 r.e = (a).e+1; in FLOAT_ADD()
111 r.m = ((b).m>>1) + ((a).m>>MIN(15,(b).e-(a).e+1)); in FLOAT_ADD()
112 r.e = (b).e+1; in FLOAT_ADD()
119 r.e-=1; in FLOAT_ADD()
125 r.e-=1; in FLOAT_ADD()
139 if ((a).e > (b).e) in FLOAT_SUB()
141 r.m = ((a).m>>1) - ((b).m>>MIN(15,(a).e-(b).e+1)); in FLOAT_SUB()
142 r.e = (a).e+1; in FLOAT_SUB()
146 r.m = ((a).m>>MIN(15,(b).e-(a).e+1)) - ((b).m>>1); in FLOAT_SUB()
147 r.e = (b).e+1; in FLOAT_SUB()
154 r.e-=1; in FLOAT_SUB()
160 r.e-=1; in FLOAT_SUB()
173 if ((a).e > (b).e) in FLOAT_LT()
174 return ((a).m>>1) < ((b).m>>MIN(15,(a).e-(b).e+1)); in FLOAT_LT()
176 return ((b).m>>1) > ((a).m>>MIN(15,(b).e-(a).e+1)); in FLOAT_LT()
189 r.e = (a).e+(b).e+15; in FLOAT_MULT()
195 r.e-=1; in FLOAT_MULT()
201 r.e-=1; in FLOAT_MULT()
212 r.e = (a).e+(b).e+15; in FLOAT_AMULT()
221 r.e = a.e+b; in FLOAT_SHL()
227 if (a.e<0) in FLOAT_EXTRACT16()
228 return EXTRACT16((EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e); in FLOAT_EXTRACT16()
230 return a.m<<a.e; in FLOAT_EXTRACT16()
235 if (a.e<0) in FLOAT_EXTRACT32()
236 return (EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e; in FLOAT_EXTRACT32()
238 return EXTEND32(a.m)<<a.e; in FLOAT_EXTRACT32()
243 return VSHR32(MULT16_32_Q15(a.m, b),-a.e-15); in FLOAT_MUL32()
259 r.e = e1+e2-13; in FLOAT_MUL32U()
266 int e=0; in FLOAT_DIV32_FLOAT() local
272 e = spx_ilog2(ABS32(a))-spx_ilog2(b.m-1)-15; in FLOAT_DIV32_FLOAT()
273 a = VSHR32(a, e); in FLOAT_DIV32_FLOAT()
277 e++; in FLOAT_DIV32_FLOAT()
280 r.e = e-b.e; in FLOAT_DIV32_FLOAT()
288 int e0=0,e=0; in FLOAT_DIV32() local
300 e = spx_ilog2(ABS32(a))-spx_ilog2(b-1)-15; in FLOAT_DIV32()
301 a = VSHR32(a, e); in FLOAT_DIV32()
305 e++; in FLOAT_DIV32()
307 e += e0; in FLOAT_DIV32()
309 r.e = e; in FLOAT_DIV32()
316 int e=0; in FLOAT_DIVU() local
328 e++; in FLOAT_DIVU()
331 num = num << (15-e); in FLOAT_DIVU()
333 r.e = a.e-b.e-15+e; in FLOAT_DIVU()
342 r.e = a.e - 14; in FLOAT_SQRT()
343 if (r.e & 1) in FLOAT_SQRT()
345 r.e -= 1; in FLOAT_SQRT()
348 r.e >>= 1; in FLOAT_SQRT()