Lines Matching defs:shift_amount
191 const int shift_amount =
193 if (shift_amount < 0) {
204 num = UInt<INT_SIZE>(1) << (shift_amount);
231 const int shift_amount =
233 if (shift_amount < 0) {
253 num = mul_pow_2(num, shift_amount);
281 int shift_amount = CALC_SHIFT_CONST - exponent;
289 if (shift_amount < 0) {
290 int block_shifts = (-shift_amount) / BLOCK_SIZE;
294 shift_amount = shift_amount + (block_shifts * BLOCK_SIZE);
298 shift_amount = shift_amount + (static_cast<int>(i) * BLOCK_SIZE);
317 if (shift_amount > 0) {
318 num = num << shift_amount;
320 num = num >> (-shift_amount);
342 int shift_amount = CALC_SHIFT_CONST - exponent;
359 num = mul_pow_2(num, shift_amount);
378 const int32_t shift_amount) {
382 val = (val * mantissa) >> shift_amount;
441 // shift_amount = -(c0 - exponent) = c_0 + 16 * ceil(exponent/16) -
482 const uint32_t shift_amount = SHIFT_CONST + pos_exp - exponent;
485 internal::mul_shift_mod_1e9(mantissa, val, (int32_t)(shift_amount));
543 const int32_t shift_amount =
546 internal::mul_shift_mod_1e9(mantissa, val, shift_amount);