4 #include "base/cl_sysdep.h"
12 #include "rational/cl_RA.h"
13 #include "cln/sfloat.h"
14 #include "cln/ffloat.h"
15 #include "cln/dfloat.h"
16 #include "cln/lfloat.h"
17 #include "float/cl_F.h"
18 #include "float/sfloat/cl_SF.h"
19 #include "float/ffloat/cl_FF.h"
20 #include "float/dfloat/cl_DF.h"
21 #include "float/lfloat/cl_LF.h"
25 const cl_F operator/ (const cl_F& x, const cl_RA& y)
28 , /* SF */ if (integerp(y)) {
30 return x / cl_I_to_SF(y);
32 return x / cl_RA_to_SF(y);
33 , /* FF */ if (integerp(y)) {
35 return x / cl_I_to_FF(y);
37 return x / cl_RA_to_FF(y);
38 , /* DF */ if (integerp(y)) {
40 return x / cl_I_to_DF(y);
42 return x / cl_RA_to_DF(y);
43 , /* LF */ if (integerp(y)) {
45 return cl_LF_I_div(x,y);
47 return cl_LF_RA_div(x,y);