X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fmisc.h;h=69d3dc4f64043ef9e8929b703c3cd711c1e11d98;hb=6e43222c13e68dcc68e88b963350a431593e0dc6;hp=39aa535ec360821a28771bd4bf64a3f6c6d36e5a;hpb=470affdb48180aebfa764941bbdb353062978444;p=pspp-builds.git
diff --git a/src/libpspp/misc.h b/src/libpspp/misc.h
index 39aa535e..69d3dc4f 100644
--- a/src/libpspp/misc.h
+++ b/src/libpspp/misc.h
@@ -1,20 +1,18 @@
-/* PSPP - computes sample statistics.
+/* PSPP - a program for statistical analysis.
Copyright (C) 1997-9, 2000 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 2 of the
- License, or (at your option) any later version.
+ 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.
+ 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. */
+ along with this program. If not, see . */
#if !math_misc_h
#define math_misc_h 1
@@ -26,17 +24,17 @@
/* HUGE_VAL is traditionally defined as positive infinity, or
alternatively, DBL_MAX. */
-#if !HAVE_ISINF && !defined (isinf)
+#if !HAVE_ISINF && !defined isinf
#define isinf(X) (fabs (X) == HUGE_VAL)
#endif
/* A Not a Number is not equal to itself. */
-#if !HAVE_ISNAN && !defined (isnan)
+#if !HAVE_ISNAN && !defined isnan
#define isnan(X) ((X) != (X))
#endif
/* Finite numbers are not infinities or NaNs. */
-#if !HAVE_FINITE && !defined (finite)
+#if !HAVE_FINITE && !defined finite
#define finite(X) (!isinf (X) && !isnan (X))
#elif HAVE_IEEEFP_H
#include /* Declares finite() under Solaris. */
@@ -59,21 +57,21 @@ int intlog10 (unsigned);
/* Returns the square of X. */
static inline double
-pow2 (double x)
+pow2 (double x)
{
return x * x;
}
/* Returns the cube of X. */
static inline double
-pow3 (double x)
+pow3 (double x)
{
return x * x * x;
}
/* Returns the fourth power of X. */
static inline double
-pow4 (double x)
+pow4 (double x)
{
double y = x * x;
y *= y;