summaryrefslogtreecommitdiff
path: root/lib/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/math.c')
-rw-r--r--lib/math.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/lib/math.c b/lib/math.c
index 1aaa16c..f6cab57 100644
--- a/lib/math.c
+++ b/lib/math.c
@@ -1,20 +1,21 @@
-/* math.c: define some simple array operations, and other functions.
+# math.c: define some simple array operations, and other functions.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 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, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
@@ -123,8 +124,6 @@ points_adjacent_p (int row1, int col1, int row2, int col2)
}
-
-
/* Find the largest and smallest elements in an array of reals. */
void
@@ -149,7 +148,7 @@ find_bounds (real *values, unsigned value_count, real *min, real *max)
}
-
+
/* Map a range of numbers, some positive and some negative, into all
positive, with the greatest being at one and the least at zero.