mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Reformat Zeek in Spicy style
This largely copies over Spicy's `.clang-format` configuration file. The one place where we deviate is header include order since Zeek depends on headers being included in a certain order.
This commit is contained in:
parent
7b8e7ed72c
commit
f5a76c1aed
786 changed files with 131714 additions and 153609 deletions
|
@ -4,38 +4,35 @@
|
|||
|
||||
#include <cstdint>
|
||||
|
||||
#define RT_MONTEN \
|
||||
6 /* Bytes used as Monte Carlo \
|
||||
co-ordinates. This should be no more \
|
||||
bits than the mantissa of your "double" \
|
||||
floating point type. */
|
||||
#define RT_MONTEN \
|
||||
6 /* Bytes used as Monte Carlo \
|
||||
co-ordinates. This should be no more \
|
||||
bits than the mantissa of your "double" \
|
||||
floating point type. */
|
||||
|
||||
namespace zeek
|
||||
{
|
||||
namespace zeek {
|
||||
|
||||
class EntropyVal;
|
||||
|
||||
namespace detail
|
||||
{
|
||||
namespace detail {
|
||||
|
||||
class RandTest
|
||||
{
|
||||
class RandTest {
|
||||
public:
|
||||
RandTest();
|
||||
void add(const void* buf, int bufl);
|
||||
void end(double* r_ent, double* r_chisq, double* r_mean, double* r_montepicalc, double* r_scc);
|
||||
RandTest();
|
||||
void add(const void* buf, int bufl);
|
||||
void end(double* r_ent, double* r_chisq, double* r_mean, double* r_montepicalc, double* r_scc);
|
||||
|
||||
private:
|
||||
friend class zeek::EntropyVal;
|
||||
friend class zeek::EntropyVal;
|
||||
|
||||
int64_t ccount[256]; /* Bins to count occurrences of values */
|
||||
int64_t totalc; /* Total bytes counted */
|
||||
int mp;
|
||||
int sccfirst;
|
||||
unsigned int monte[RT_MONTEN] = {0};
|
||||
int64_t inmont, mcount;
|
||||
double cexp, montex, montey, montepi, sccu0, scclast, scct1, scct2, scct3;
|
||||
};
|
||||
int64_t ccount[256]; /* Bins to count occurrences of values */
|
||||
int64_t totalc; /* Total bytes counted */
|
||||
int mp;
|
||||
int sccfirst;
|
||||
unsigned int monte[RT_MONTEN] = {0};
|
||||
int64_t inmont, mcount;
|
||||
double cexp, montex, montey, montepi, sccu0, scclast, scct1, scct2, scct3;
|
||||
};
|
||||
|
||||
} // namespace detail
|
||||
} // namespace zeek
|
||||
} // namespace detail
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue