Lines Matching refs:shiftedM
27 auto shiftedM = std::round(mantissa * (int64_t(1) << 15)); in computeMultiplierAndShiftTosaScale16() local
30 assert(shiftedM <= (int64_t(1) << 15) && in computeMultiplierAndShiftTosaScale16()
33 if (shiftedM == (int64_t(1) << 15)) { in computeMultiplierAndShiftTosaScale16()
34 shiftedM /= 2; in computeMultiplierAndShiftTosaScale16()
42 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale16()
45 multiplier = static_cast<int32_t>(shiftedM); in computeMultiplierAndShiftTosaScale16()
56 auto shiftedM = std::round(mantissa * (int64_t(1) << 31)); in computeMultiplierAndShiftTosaScale32() local
59 assert(shiftedM <= (int64_t(1) << 31) && in computeMultiplierAndShiftTosaScale32()
61 if (shiftedM == (int64_t(1) << 31)) { in computeMultiplierAndShiftTosaScale32()
62 shiftedM /= 2; in computeMultiplierAndShiftTosaScale32()
70 assert(shiftedM <= std::numeric_limits<int32_t>::max() && in computeMultiplierAndShiftTosaScale32()
73 multiplier = static_cast<int32_t>(shiftedM); in computeMultiplierAndShiftTosaScale32()