static int statHistBin(const StatHist * H, double v);
static double statHistVal(const StatHist * H, int bin);
static StatHistBinDumper statHistBinDumper;
-#if !defined(_SQUID_HPUX_) || !defined(__GNUC__)
-/*
- * HP-UX and GCC (2.8?) give strange errors when these simple
- * functions are static.
- */
+
namespace Math
{
-static hbase_f Log;
-static hbase_f Exp;
-static hbase_f Null;
+hbase_f Log;
+hbase_f Exp;
+hbase_f Null;
};
-#endif
/* low level init, higher level functions has less params */
static void
}
/* log based histogram */
-#if !defined(_SQUID_HPUX_) || !defined(__GNUC__)
-static
-#endif
double
Math::Log(double x)
{
return log(x + 1.0);
}
-#if !defined(_SQUID_HPUX_) || !defined(__GNUC__)
-static
-#endif
double
Math::Exp(double x)
{
/* linear histogram for enums */
/* we want to be have [-1,last_enum+1] range to track out of range enums */
-#if !defined(_SQUID_HPUX_) || !defined(__GNUC__)
-static
-#endif
double
Math::Null(double x)
{