X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=src%2Freal%2Felem%2Fcl_R_div.cc;h=546c30aa0d17b9e76817478a0885d3346ceae169;hb=a5a43ddb1b42b04c67603f943ad6364405dc0275;hp=df389e0ae98e06da691dd855549910ee743b0bec;hpb=dd9e0f894eec7e2a8cf85078330ddc0a6639090b;p=cln.git diff --git a/src/real/elem/cl_R_div.cc b/src/real/elem/cl_R_div.cc index df389e0..546c30a 100644 --- a/src/real/elem/cl_R_div.cc +++ b/src/real/elem/cl_R_div.cc @@ -4,35 +4,37 @@ #include "cl_sysdep.h" // Specification. -#include "cl_real.h" +#include "cln/real.h" // Implementation. #include "cl_R.h" -#include "cl_rational.h" +#include "cln/rational.h" #include "cl_RA.h" -#include "cl_integer.h" +#include "cln/integer.h" #include "cl_I.h" #include "cl_F.h" -#include "cl_sfloat.h" +#include "cln/sfloat.h" #include "cl_SF.h" -#include "cl_ffloat.h" +#include "cln/ffloat.h" #include "cl_FF.h" -#include "cl_dfloat.h" +#include "cln/dfloat.h" #include "cl_DF.h" -#include "cl_lfloat.h" +#include "cln/lfloat.h" #include "cl_LF.h" #include "cl_N.h" +namespace cln { + ALL_cl_LF_OPERATIONS_SAME_PRECISION() const cl_R operator/ (const cl_R& x, const cl_R& y) { if (eq(x,0)) - // 0 / y = exakte 0, außer wenn y=0 + // 0 / y = exakte 0, außer wenn y=0 { if (zerop(y)) - { cl_error_division_by_0(); } + { throw division_by_0_exception(); } else return 0; } @@ -95,3 +97,5 @@ const cl_R operator/ (const cl_R& x, const cl_R& y) ); ); } + +} // namespace cln