diff options
author | styluseater <styluseater> | 2011-02-26 05:17:18 +0000 |
---|---|---|
committer | styluseater <styluseater> | 2011-02-26 05:17:18 +0000 |
commit | b9ef931b7d2320e3fcba014fd52548333815f4d7 (patch) | |
tree | 195a623bd8d8426a03378ec2239948cf969d4890 /lib/math.c | |
parent | ecca91964d855323c85b7dad473f3b55bb4588ca (diff) | |
download | fontutils-b9ef931b7d2320e3fcba014fd52548333815f4d7.tar.gz |
Finished changelog merge. Updated all license headers. Created new license header format in all files using single line comments.
Diffstat (limited to 'lib/math.c')
-rw-r--r-- | lib/math.c | 37 |
1 files changed, 18 insertions, 19 deletions
@@ -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. |