Home | History | Annotate | Download | only in src

Lines Matching refs:shift

128   int   shift;
138 shift = (int)(a_e - b_e);
140 shiftAbs = (shift>0)? shift : -shift;
142 shiftedMantissa = (shift>0)? (FX_SGL2FX_DBL(b_m) >> shiftAbs) : (FX_SGL2FX_DBL(a_m) >> shiftAbs);
143 otherMantissa = (shift>0)? FX_SGL2FX_DBL(a_m) : FX_SGL2FX_DBL(b_m);
144 *ptrSum_e = (shift>0)? a_e : b_e;
147 /* shift by 1 bit to avoid overflow */
166 int shift;
176 shift = (int)(a_e - b_e);
178 shiftAbs = (shift>0)? shift : -shift;
180 shiftedMantissa = (shift>0)? (b >> shiftAbs) : (a >> shiftAbs);
181 otherMantissa = (shift>0)? a : b;
182 *ptrSum_e = (shift>0)? a_e : b_e;
185 /* shift by 1 bit to avoid overflow */
215 int preShift, postShift, index, shift;
222 Shift b into the range from 0..INV_TABLE_SIZE-1,
237 shift = (FRACT_BITS - 2 - INV_TABLE_BITS - preShift);
239 index = (shift<0)? (LONG)b_m << (-shift) : (LONG)b_m >> shift;
271 int preShift, postShift, index, shift;
278 Shift b into the range from 0..INV_TABLE_SIZE-1,
293 shift = (DFRACT_BITS - 2 - INV_TABLE_BITS - preShift);
295 index = (shift<0)? (LONG)b_m << (-shift) : (LONG)b_m >> shift;
347 int shift = result_e - *destScale;
348 *mantissa = (shift>=0) ? result << (INT)fixMin(DFRACT_BITS-1,shift)
349 : result >> (INT)fixMin(DFRACT_BITS-1,-shift);