• Home
  • Raw
  • Download

Lines Matching refs:dividend

105 Node* MachineOperatorReducer::Int32Div(Node* dividend, int32_t divisor) {  in Int32Div()  argument
110 Node* quotient = graph()->NewNode(machine()->Int32MulHigh(), dividend, in Int32Div()
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()
121 Node* MachineOperatorReducer::Uint32Div(Node* dividend, uint32_t divisor) { in Uint32Div() argument
126 dividend = Word32Shr(dividend, shift); in Uint32Div()
131 Node* quotient = graph()->NewNode(machine()->Uint32MulHigh(), dividend, in Uint32Div()
136 Int32Add(Word32Shr(Int32Sub(dividend, quotient), 1), quotient), in Uint32Div()
801 Node* const dividend = m.left().node(); in ReduceInt32Div() local
802 Node* quotient = dividend; in ReduceInt32Div()
809 quotient = Int32Add(Word32Shr(quotient, 32u - shift), dividend); in ReduceInt32Div()
841 Node* const dividend = m.left().node(); in ReduceUint32Div() local
849 return Replace(Uint32Div(dividend, divisor)); in ReduceUint32Div()
868 Node* const dividend = m.left().node(); in ReduceInt32Mod() local
874 graph()->NewNode(machine()->Int32LessThan(), dividend, zero), in ReduceInt32Mod()
878 Int32Sub(zero, Word32And(Int32Sub(zero, dividend), mask)), in ReduceInt32Mod()
879 Word32And(dividend, mask))); in ReduceInt32Mod()
881 Node* quotient = Int32Div(dividend, divisor); in ReduceInt32Mod()
882 DCHECK_EQ(dividend, node->InputAt(0)); in ReduceInt32Mod()
904 Node* const dividend = m.left().node(); in ReduceUint32Mod() local
911 Node* quotient = Uint32Div(dividend, divisor); in ReduceUint32Mod()
912 DCHECK_EQ(dividend, node->InputAt(0)); in ReduceUint32Mod()