Searched refs:safe_shift (Results 1 – 6 of 6) sorted by relevance
365 int safe_shift = kScale; in SafeDivideAndScale() local366 while (((a << safe_shift) >> safe_shift) != a) { in SafeDivideAndScale()367 safe_shift--; in SafeDivideAndScale()369 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()372 quotient = (a << safe_shift) / scaled_b; in SafeDivideAndScale()
363 int safe_shift = kScale; in SafeDivideAndScale() local364 while (((a << safe_shift) >> safe_shift) != a) { in SafeDivideAndScale()365 safe_shift--; in SafeDivideAndScale()367 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()370 quotient = (a << safe_shift) / scaled_b; in SafeDivideAndScale()
379 FX_SAFE_INT32 safe_shift = shift; in DoOperator() local380 result >>= (-safe_shift).ValueOrDefault(0); in DoOperator()