Lines Matching refs:scaled
120 uint64_t scaled, res;
143 &scaled,
147 // if scaled is >= 0x8000<etc>, then we are going to overflow or
150 if (scaled & INT64_MIN) {
157 if (ABS(basis2) <= static_cast<int64_t>(scaled & INT64_MAX))
161 *out = (is_neg ? (-scaled) : scaled) + basis2;
163 // Scaled fits within signed bounds, so we just need to check for
164 // over/underflow for two signed integers. Basically, if both scaled
175 scaled = -scaled;
176 res = scaled + basis2;
178 if ((scaled ^ basis2 ^ INT64_MIN) & (scaled ^ res) & INT64_MIN)