]> www.ginac.de Git - cln.git/blobdiff - src/float/transcendental/cl_LF_ln2.cc
Get rid of CL_REQUIRE/CL_PROVIDE(cl_F_ln10_var).
[cln.git] / src / float / transcendental / cl_LF_ln2.cc
index a07c0e1969f7882af30f37e959fee52cd88d48a4..99dd8a0318aa3a0f5cb434e1a5023b28f57d4785 100644 (file)
@@ -76,13 +76,13 @@ static inline const cl_LF compute_ln2_p2357 (uintC len)
 
 const cl_LF cl_ln2 (uintC len)
 {
-       var uintC oldlen = TheLfloat(cl_LF_ln2)->len; // vorhandene Länge
+       var uintC oldlen = TheLfloat(cl_LF_ln2())->len; // vorhandene Länge
        if (len < oldlen)
-               return shorten(cl_LF_ln2,len);
+               return shorten(cl_LF_ln2(),len);
        if (len == oldlen)
-               return cl_LF_ln2;
+               return cl_LF_ln2();
 
-       // TheLfloat(cl_LF_ln2)->len um mindestens einen konstanten Faktor
+       // TheLfloat(cl_LF_ln2())->len um mindestens einen konstanten Faktor
        // > 1 wachsen lassen, damit es nicht zu häufig nachberechnet wird:
        var uintC newlen = len;
        oldlen += floor(oldlen,2); // oldlen * 3/2
@@ -90,8 +90,8 @@ const cl_LF cl_ln2 (uintC len)
                newlen = oldlen;
 
        // gewünschte > vorhandene Länge -> muß nachberechnen:
-       cl_LF_ln2 = compute_ln2(newlen);
-       return (len < newlen ? shorten(cl_LF_ln2,len) : cl_LF_ln2);
+       cl_LF_ln2() = compute_ln2(newlen);
+       return (len < newlen ? shorten(cl_LF_ln2(),len) : cl_LF_ln2());
 }
 
 }  // namespace cln