aboutsummaryrefslogtreecommitdiff
path: root/src/jtutil/fuzzy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/jtutil/fuzzy.cc')
-rw-r--r--src/jtutil/fuzzy.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/jtutil/fuzzy.cc b/src/jtutil/fuzzy.cc
index f6238de..609ba7a 100644
--- a/src/jtutil/fuzzy.cc
+++ b/src/jtutil/fuzzy.cc
@@ -13,7 +13,7 @@
#include "jt/stdc.h"
#include "jt/util++.hh"
-//*****************************************************************************
+//******************************************************************************
template <typename fpt>
bool fuzzy<fpt>::EQ(fpt x, fpt y)
@@ -24,7 +24,7 @@ fpt epsilon = jtutil::max(tolerance, tolerance*max_abs);
return jtutil::abs<fpt>(x-y) <= epsilon;
}
-//*****************************************************************************
+//******************************************************************************
template <typename fpt>
bool fuzzy<fpt>::is_integer(fpt x)
@@ -33,7 +33,7 @@ int i = round<fpt>::to_integer(x);
return EQ(x, fpt(i));
}
-//*****************************************************************************
+//******************************************************************************
template <typename fpt>
int fuzzy<fpt>::floor(fpt x)
@@ -43,7 +43,7 @@ return fuzzy<fpt>::is_integer(x)
: round<fpt>::floor(x);
}
-//*****************************************************************************
+//******************************************************************************
template <typename fpt>
int fuzzy<fpt>::ceiling(fpt x)
@@ -53,9 +53,11 @@ return fuzzy<fpt>::is_integer(x)
: round<fpt>::ceiling(x);
}
-//*****************************************************************************
+//******************************************************************************
+//******************************************************************************
// *** instantiations of fuzzy template for <float> and <double>
-//*****************************************************************************
+//******************************************************************************
+//******************************************************************************
// instantiation for <float>
template class fuzzy<float>;