• Home
  • Raw
  • Download

Lines Matching refs:dividend

89 Node* MachineOperatorReducer::Int32Div(Node* dividend, int32_t divisor) {  in Int32Div()  argument
94 Node* quotient = graph()->NewNode(machine()->Int32MulHigh(), dividend, in Int32Div()
97 quotient = Int32Add(quotient, dividend); in Int32Div()
99 quotient = Int32Sub(quotient, dividend); in Int32Div()
101 return Int32Add(Word32Sar(quotient, mag.shift), Word32Shr(dividend, 31)); in Int32Div()
105 Node* MachineOperatorReducer::Uint32Div(Node* dividend, uint32_t divisor) { in Uint32Div() argument
110 dividend = Word32Shr(dividend, shift); in Uint32Div()
115 Node* quotient = graph()->NewNode(machine()->Uint32MulHigh(), dividend, in Uint32Div()
120 Int32Add(Word32Shr(Int32Sub(dividend, quotient), 1), quotient), in Uint32Div()
525 Node* const dividend = m.left().node(); in ReduceInt32Div() local
526 Node* quotient = dividend; in ReduceInt32Div()
533 quotient = Int32Add(Word32Shr(quotient, 32u - shift), dividend); in ReduceInt32Div()
565 Node* const dividend = m.left().node(); in ReduceUint32Div() local
573 return Replace(Uint32Div(dividend, divisor)); in ReduceUint32Div()
592 Node* const dividend = m.left().node(); in ReduceInt32Mod() local
598 0, graph()->NewNode(machine()->Int32LessThan(), dividend, zero)); in ReduceInt32Mod()
600 1, Int32Sub(zero, Word32And(Int32Sub(zero, dividend), mask))); in ReduceInt32Mod()
601 node->ReplaceInput(2, Word32And(dividend, mask)); in ReduceInt32Mod()
606 Node* quotient = Int32Div(dividend, divisor); in ReduceInt32Mod()
607 DCHECK_EQ(dividend, node->InputAt(0)); in ReduceInt32Mod()
629 Node* const dividend = m.left().node(); in ReduceUint32Mod() local
636 Node* quotient = Uint32Div(dividend, divisor); in ReduceUint32Mod()
637 DCHECK_EQ(dividend, node->InputAt(0)); in ReduceUint32Mod()