Home | History | Annotate | Download | only in mpq

Lines Matching refs:quot

36 mpq_div (mpq_ptr quot, mpq_srcptr op1, mpq_srcptr op2)
50 if (UNLIKELY (quot == op2))
54 mpq_set_ui (quot, 1, 1);
60 MPN_PTR_SWAP (PTR(NUM(quot)), ALLOC(NUM(quot)),
61 PTR(DEN(quot)), ALLOC(DEN(quot)));
64 SIZ(NUM(quot)) = SIZ(DEN(quot));
65 SIZ(DEN(quot)) = op2_size;
69 SIZ(NUM(quot)) = - SIZ(DEN(quot));
70 SIZ(DEN(quot)) = - op2_size;
72 mpq_mul (quot, quot, op1);
82 SIZ(NUM(quot)) = 0;
83 MPZ_NEWALLOC (DEN(quot), 1)[0] = 1;
84 SIZ(DEN(quot)) = 1;
107 /* QUOT might be identical to OP1, so don't store the result there
109 the numerator of QUOT when we are finished with the numerator of
118 mpz_mul (NUM(quot), tmp1, tmp2);
123 mpz_mul (DEN(quot), tmp1, tmp2);
126 if (SIZ(DEN(quot)) < 0)
128 SIZ(DEN(quot)) = -SIZ(DEN(quot));
129 SIZ(NUM(quot)) = -SIZ(NUM(quot));