]> www.ginac.de Git - cln.git/blobdiff - src/real/elem/cl_R_div.cc
Fix compilation on CYGWIN:
[cln.git] / src / real / elem / cl_R_div.cc
index df389e0ae98e06da691dd855549910ee743b0bec..546c30aa0d17b9e76817478a0885d3346ceae169 100644 (file)
@@ -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