13 #include "cl_rational.h"
15 #include "cl_integer.h"
18 #include "cl_sfloat.h"
20 #include "cl_ffloat.h"
22 #include "cl_dfloat.h"
24 #include "cl_lfloat.h"
28 ALL_cl_LF_OPERATIONS_SAME_PRECISION()
30 const cl_R operator/ (const cl_R& x, const cl_R& y)
33 // 0 / y = exakte 0, außer wenn y=0
35 { cl_error_division_by_0(); }
44 , /* I */ return div(x,y);
45 , /* RT */ return div(x,y);
46 , /* SF */ return div(cl_I_to_SF(x),y);
47 , /* FF */ return div(cl_I_to_FF(x),y);
48 , /* DF */ return div(cl_I_to_DF(x),y);
49 , /* LF */ return div(cl_I_to_LF(x,LFlen0(y)),y); // cf. cl_I_LF_div
53 , /* I */ return div(x,y);
54 , /* RT */ return div(x,y);
55 , /* SF */ return div(cl_RA_to_SF(x),y);
56 , /* FF */ return div(cl_RA_to_FF(x),y);
57 , /* DF */ return div(cl_RA_to_DF(x),y);
58 , /* LF */ return cl_RA_LF_div(x,y);
62 , /* I */ return div(x,cl_I_to_SF(y));
63 , /* RT */ return div(x,cl_RA_to_SF(y));
64 , /* SF */ return div(x,y);
65 , /* FF */ return cl_FF_to_SF(div(cl_SF_to_FF(x),y));
66 , /* DF */ return cl_DF_to_SF(div(cl_SF_to_DF(x),y));
67 , /* LF */ return cl_LF_to_SF(div(cl_SF_to_LF(x,LFlen0(y)),y));
71 , /* I */ return div(x,cl_I_to_FF(y));
72 , /* RT */ return div(x,cl_RA_to_FF(y));
73 , /* SF */ return cl_FF_to_SF(div(x,cl_SF_to_FF(y)));
74 , /* FF */ return div(x,y);
75 , /* DF */ return cl_DF_to_FF(div(cl_FF_to_DF(x),y));
76 , /* LF */ return cl_LF_to_FF(div(cl_FF_to_LF(x,LFlen0(y)),y));
80 , /* I */ return div(x,cl_I_to_DF(y));
81 , /* RT */ return div(x,cl_RA_to_DF(y));
82 , /* SF */ return cl_DF_to_SF(div(x,cl_SF_to_DF(y)));
83 , /* FF */ return cl_DF_to_FF(div(x,cl_FF_to_DF(y)));
84 , /* DF */ return div(x,y);
85 , /* LF */ return cl_LF_to_DF(div(cl_DF_to_LF(x,LFlen0(y)),y));
89 , /* I */ return cl_LF_I_div(x,y);
90 , /* RT */ return cl_LF_RA_div(x,y);
91 , /* SF */ return cl_LF_to_SF(div(x,cl_SF_to_LF(y,LFlen0(x))));
92 , /* FF */ return cl_LF_to_FF(div(x,cl_FF_to_LF(y,LFlen0(x))));
93 , /* DF */ return cl_LF_to_DF(div(x,cl_DF_to_LF(y,LFlen0(x))));
94 , /* LF */ return div(x,y);