Move a few low-use classes to namespaces

This commit is contained in:
Tim Wojtulewicz 2020-07-21 16:19:14 -07:00
parent 886fc102b8
commit c9ab1f93e7
53 changed files with 252 additions and 122 deletions

View file

@ -16,7 +16,8 @@
#include <math.h>
#define log2of10 3.32192809488736234787
constexpr double log2of10 = 3.32192809488736234787;
/* RT_LOG2 -- Calculate log to the base 2 */
static double rt_log2(double x)
{
@ -24,7 +25,9 @@ static double rt_log2(double x)
}
// RT_INCIRC = pow(pow(256.0, (double) (RT_MONTEN / 2)) - 1, 2.0);
#define RT_INCIRC 281474943156225.0
constexpr double RT_INCIRC = 281474943156225.0;
namespace zeek::detail {
RandTest::RandTest()
{
@ -142,3 +145,5 @@ void RandTest::end(double* r_ent, double* r_chisq,
*r_montepicalc = montepi;
*r_scc = scc;
}
} // namespace zeek::detail