4 #include "base/cl_sysdep.h"
7 #include "float/lfloat/cl_LF.h"
12 #include "cln/lfloat.h"
13 #include "cln/rational.h"
14 #include "rational/cl_RA.h"
18 const cl_LF cl_LF_RA_div (const cl_LF& x, const cl_RA& y)
21 // Write y = u/v. Return (x*v)/u.
24 return cl_LF_I_div(x,y);
27 var const cl_I& u = numerator(y); // u /= 0
28 var const cl_I& v = denominator(y); // v /= 0
29 return cl_LF_I_div(The(cl_LF)(cl_LF_I_mul(x,v)),u);