]> www.ginac.de Git - ginac.git/blobdiff - ginac/polynomial/heur_gcd_uvar.h
[BUGFIX] Fix crash in parser.
[ginac.git] / ginac / polynomial / heur_gcd_uvar.h
index 8dcccd222fd31bea20ee53828d4e374f45e50db8..f00dbe90eb9486c2ea207510b4e64cd9b4951ebf 100644 (file)
@@ -1,15 +1,38 @@
-#ifndef GINAC_UPOLY_HEUR_GCD
-#define GINAC_UPOLY_HEUR_GCD
+/** @file heur_gcd_uvar.h
+ *
+ *  Heuristic GCD code. */
+
+/*
+ *  GiNaC Copyright (C) 1999-2024 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
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifndef GINAC_UPOLY_HEUR_GCD_H
+#define GINAC_UPOLY_HEUR_GCD_H
+
 #include "upoly.h"
 #include "ring_traits.h"
 #include "normalize.h"
 #include "remainder.h"
 #include "eval_uvar.h"
 #include "interpolate_padic_uvar.h"
+
 #include <algorithm>
 
-namespace GiNaC
-{
+namespace GiNaC {
 
 /// Compute GCD of primitive univariate polynomials.
 template<typename T> static bool
@@ -62,5 +85,4 @@ heur_gcd_z_priv(T& g, const T& a, const T& b, const unsigned max_tries = 66)
 
 } // namespace GiNaC
 
-#endif // GINAC_UPOLY_HEUR_GCD
-
+#endif // ndef GINAC_UPOLY_HEUR_GCD_H