]> www.ginac.de Git - cln.git/blobdiff - src/real/algebraic/cl_RA_sqrt.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / real / algebraic / cl_RA_sqrt.cc
index 93fffd5e83352d8975f072384d11231e4c1717d6..4b112eb1389d8025096ba00600ded97c80bc6ac0 100644 (file)
@@ -4,16 +4,17 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_real.h"
+#include "cln/real.h"
 
 
 // Implementation.
 
-#include "cl_rational.h"
-#include "cl_float.h"
+#include "cln/rational.h"
+#include "cln/float.h"
 
-MAYBE_INLINE
-const cl_R sqrt (const cl_RA& x)
+namespace cln {
+
+CL_INLINE const cl_R CL_INLINE_DECL(sqrt) (const cl_RA& x)
 {
        var cl_RA w;
        if (sqrtp(x,&w)) // auf Quadrat testen
@@ -22,3 +23,5 @@ const cl_R sqrt (const cl_RA& x)
                // x in Float umwandeln, dann die Wurzel ziehen:
                return sqrt(cl_float(x));
 }
+
+}  // namespace cln