Lines Matching refs:quotient
110 Node* quotient = graph()->NewNode(machine()->Int32MulHigh(), dividend, in Int32Div() local
113 quotient = Int32Add(quotient, dividend); in Int32Div()
115 quotient = Int32Sub(quotient, dividend); in Int32Div()
117 return Int32Add(Word32Sar(quotient, mag.shift), Word32Shr(dividend, 31)); in Int32Div()
131 Node* quotient = graph()->NewNode(machine()->Uint32MulHigh(), dividend, in Uint32Div() local
135 quotient = Word32Shr( in Uint32Div()
136 Int32Add(Word32Shr(Int32Sub(dividend, quotient), 1), quotient), in Uint32Div()
139 quotient = Word32Shr(quotient, mag.shift); in Uint32Div()
141 return quotient; in Uint32Div()
799 Node* quotient = dividend; in ReduceInt32Div() local
804 quotient = Word32Sar(quotient, 31); in ReduceInt32Div()
806 quotient = Int32Add(Word32Shr(quotient, 32u - shift), dividend); in ReduceInt32Div()
807 quotient = Word32Sar(quotient, shift); in ReduceInt32Div()
809 quotient = Int32Div(quotient, Abs(divisor)); in ReduceInt32Div()
813 node->ReplaceInput(1, quotient); in ReduceInt32Div()
818 return Replace(quotient); in ReduceInt32Div()
878 Node* quotient = Int32Div(dividend, divisor); in ReduceInt32Mod() local
880 node->ReplaceInput(1, Int32Mul(quotient, Int32Constant(divisor))); in ReduceInt32Mod()
908 Node* quotient = Uint32Div(dividend, divisor); in ReduceUint32Mod() local
910 node->ReplaceInput(1, Int32Mul(quotient, Uint32Constant(divisor))); in ReduceUint32Mod()