]> www.ginac.de Git - cln.git/blobdiff - src/float/transcendental/cl_LF_ratseries_pa.cc
2006-04-25 Bruno Haible <bruno@clisp.org>
[cln.git] / src / float / transcendental / cl_LF_ratseries_pa.cc
index 8c4e3630213877075221e07b3dea95fdf0eb1797..6382f8404f16669e0f4c0bb331de19ab78359ff1 100644 (file)
@@ -9,18 +9,20 @@
 
 // Implementation.
 
-#include "cl_lfloat.h"
-#include "cl_integer.h"
-#include "cl_abort.h"
+#include "cln/lfloat.h"
+#include "cln/integer.h"
+#include "cln/abort.h"
 #include "cl_LF.h"
 
+namespace cln {
+
 // Subroutine.
 // Evaluates S = sum(N1 <= n < N2, a(n)/b(n) * (p(N1)...p(n))/(q(N1)...q(n)))
 // and returns P = p(N1)...p(N2-1), Q = q(N1)...q(N2-1), B = B(N1)...B(N2-1)
 // and T = B*Q*S (all integers). On entry N1 < N2.
 // P will not be computed if a NULL pointer is passed.
 
-static void eval_pa_series_aux (uintL N1, uintL N2,
+static void eval_pa_series_aux (uintC N1, uintC N2,
                                 const cl_pa_series& args,
                                 cl_I* P, cl_I* T)
 {
@@ -59,7 +61,7 @@ static void eval_pa_series_aux (uintL N1, uintL N2,
                break;
                }
        default: {
-               var uintL Nm = (N1+N2)/2; // midpoint
+               var uintC Nm = (N1+N2)/2; // midpoint
                // Compute left part.
                var cl_I LP, LT;
                eval_pa_series_aux(N1,Nm,args,&LP,&LT);
@@ -75,7 +77,7 @@ static void eval_pa_series_aux (uintL N1, uintL N2,
        }
 }
 
-const cl_LF eval_rational_series (uintL N, const cl_pa_series& args, uintC len)
+const cl_LF eval_rational_series (uintC N, const cl_pa_series& args, uintC len)
 {
        if (N==0)
                return cl_I_to_LF(0,len);
@@ -85,3 +87,5 @@ const cl_LF eval_rational_series (uintL N, const cl_pa_series& args, uintC len)
 }
 // Bit complexity (if p(n), q(n), a(n), b(n) have length O(log(n))):
 // O(log(N)^2*M(N)).
+
+}  // namespace cln