#include "utils.h"
#include "version.h"
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
/* Version information buried into the library */
const int version_major = GINACLIB_MAJOR_VERSION;
unsigned log2(unsigned n)
{
unsigned k;
- for (k = 0; n > 1; n >>= 1) ++k;
+ for (k = 0; n > 1; n >>= 1)
+ ++k;
return k;
}
#endif
-/** Compare two pointers (just to establish some sort of canonical order).
- * @return -1, 0, or 1 */
-int compare_pointers(const void * a, const void * b)
-{
- if (a<b) {
- return -1;
- } else if (a>b) {
- return 1;
- }
- return 0;
-}
-
-/** Append one exvector to another */
-void append_exvector_to_exvector(exvector & dest, const exvector & source)
-{
- dest.reserve(dest.size() + source.size());
- dest.insert(dest.end(), source.begin(), source.end());
-}
-
//////////
// `construct on first use' chest of numbers
//////////
// member functions
- // default constructor, destructor, copy constructor assignment operator and helpers
+ // default ctor, dtor, copy ctor assignment operator and helpers
// none
- // other constructors
+ // other ctors
// none
// functions overriding virtual functions from bases classes
//////////
-// default constructor, destructor, copy constructor assignment operator and helpers
+// default ctor, dtor, copy ctor assignment operator and helpers
//////////
// public
// protected
//////////
-// other constructors
+// other ctors
//////////
// public
// none
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC