* but not of any interest to the user of the library. */
/*
- * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "ex.h"
#include "numeric.h"
#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;
+const int version_minor = GINACLIB_MINOR_VERSION;
+const int version_micro = GINACLIB_MICRO_VERSION;
+
/** ctor for pole_error exception class. */
pole_error::pole_error(const std::string& what_arg, int degree)
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;
-}
-
//////////
// `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