]> www.ginac.de Git - ginac.git/commitdiff
move rotate_left() function away from the public header.
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Tue, 18 Mar 2008 06:45:25 +0000 (09:45 +0300)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Tue, 18 Mar 2008 06:45:25 +0000 (09:45 +0300)
ginac/ex.h
ginac/utils.h

index 774b8600a2407accaf5b3788f6fbfa0732b34713..336bb14f1c1c51640988515e3c7a647d90b9ffdf 100644 (file)
@@ -52,13 +52,6 @@ private:
 /** For construction of flyweights, etc. */
 static library_init library_initializer;
 
 /** For construction of flyweights, etc. */
 static library_init library_initializer;
 
-/** Rotate bits of unsigned value by one bit to the left.
-  * This can be necesary if the user wants to define its own hashes. */
-inline unsigned rotate_left(unsigned n)
-{
-       return (n & 0x80000000U) ? (n << 1 | 0x00000001U) : (n << 1);
-}
-
 class scalar_products;
 class const_iterator;
 class const_preorder_iterator;
 class scalar_products;
 class const_iterator;
 class const_preorder_iterator;
index ebfc9804314a789d6657609ac1b80a9942a03a0c..1cac625624501ab1725d870afbe98ac0a469fd01 100644 (file)
@@ -44,6 +44,13 @@ class dunno {};
 
 unsigned log2(unsigned n);
 
 
 unsigned log2(unsigned n);
 
+/** Rotate bits of unsigned value by one bit to the left.
+  * This can be necesary if the user wants to define its own hashes. */
+inline unsigned rotate_left(unsigned n)
+{
+       return (n & 0x80000000U) ? (n << 1 | 0x00000001U) : (n << 1);
+}
+
 /** Compare two pointers (just to establish some sort of canonical order).
  *  @return -1, 0, or 1 */
 template <class T>
 /** Compare two pointers (just to establish some sort of canonical order).
  *  @return -1, 0, or 1 */
 template <class T>