Lines Matching defs:dividend
105 Node* MachineOperatorReducer::Int32Div(Node* dividend, int32_t divisor) {
110 Node* quotient = graph()->NewNode(machine()->Int32MulHigh(), dividend,
113 quotient = Int32Add(quotient, dividend);
115 quotient = Int32Sub(quotient, dividend);
117 return Int32Add(Word32Sar(quotient, mag.shift), Word32Shr(dividend, 31));
121 Node* MachineOperatorReducer::Uint32Div(Node* dividend, uint32_t divisor) {
124 // the dividend upfront.
126 dividend = Word32Shr(dividend, shift);
131 Node* quotient = graph()->NewNode(machine()->Uint32MulHigh(), dividend,
136 Int32Add(Word32Shr(Int32Sub(dividend, quotient), 1), quotient),
801 Node* const dividend = m.left().node();
802 Node* quotient = dividend;
809 quotient = Int32Add(Word32Shr(quotient, 32u - shift), dividend);
841 Node* const dividend = m.left().node();
849 return Replace(Uint32Div(dividend, divisor));
868 Node* const dividend = m.left().node();
874 graph()->NewNode(machine()->Int32LessThan(), dividend, zero),
878 Int32Sub(zero, Word32And(Int32Sub(zero, dividend), mask)),
879 Word32And(dividend, mask)));
881 Node* quotient = Int32Div(dividend, divisor);
882 DCHECK_EQ(dividend, node->InputAt(0));
904 Node* const dividend = m.left().node();
911 Node* quotient = Uint32Div(dividend, divisor);
912 DCHECK_EQ(dividend, node->InputAt(0));