]> www.ginac.de Git - cln.git/blobdiff - src/integer/bitwise/cl_I_lognand.cc
Use paths relative the `src' directory in the #include directives.
[cln.git] / src / integer / bitwise / cl_I_lognand.cc
index 9c0614b18fa2671c5a823290497957cb4dbde9d8..ac1b678257aba8314259264fee96d05eb651d5ab 100644 (file)
@@ -1,7 +1,7 @@
 // lognand().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
 #include "cln/integer.h"
@@ -9,22 +9,22 @@
 
 // Implementation.
 
-#include "cl_I.h"
-#include "cl_DS.h"
-#include "cl_I_log.h"
+#include "integer/cl_I.h"
+#include "base/digitseq/cl_DS.h"
+#include "integer/bitwise/cl_I_log.h"
 
 namespace cln {
 
 // Logische Operationen auf Integers:
-// Methode: aus den Längen der beiden Argumente eine obere Schranke für
-// die Länge des Ergebnisses berechnen (das Maximum der beiden Längen und
-// FN_maxlength), so daß das MSD für unendlich viele Bits steht.
-// Dann beide Argumente in gleichgroße Digit sequences umwandeln, Operation
-// mit einer einfachen Schleife durchführen.
+// Methode: aus den Längen der beiden Argumente eine obere Schranke für
+// die Länge des Ergebnisses berechnen (das Maximum der beiden Längen und
+// FN_maxlength), so daß das MSD für unendlich viele Bits steht.
+// Dann beide Argumente in gleichgroße Digit sequences umwandeln, Operation
+// mit einer einfachen Schleife durchführen.
 
 const cl_I lognand (const cl_I& x, const cl_I& y)
     { if (fixnump(x) && fixnump(y)) // Beides Fixnums -> ganz einfach:
-        { // bitweise als Fixnum zurück
+        { // bitweise als Fixnum zurück
           return cl_I_from_word((x.word & y.word) ^ cl_combine(0,~(cl_uint)0));
         }
       if (fixnump(x))
@@ -48,7 +48,7 @@ const cl_I lognand (const cl_I& x, const cl_I& y)
        {var uintD* xptr; I_to_DS_n(x,n,xptr=); // Pointer in DS zu x
         var uintD* yptr; I_to_DS_n(y,n,yptr=); // Pointer in DS zu y
         var uintD* zptr = xptr; // Pointer aufs Ergebnis
-        nand_loop_msp(xptr,yptr,n); // mit NOT AND verknüpfen
+        nand_loop_msp(xptr,yptr,n); // mit NOT AND verknüpfen
         return DS_to_I(zptr,n); // Ergebnis als Integer
     } }}