diff options
author | vanhauser-thc <vh@thc.org> | 2020-09-05 12:11:48 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2020-09-05 12:11:48 +0200 |
commit | 996986bed5f2dd97a3d76f584d8eddc1203f8396 (patch) | |
tree | 245d4b208ecb1dcf38c34987aabbd8e44c2703c9 /instrumentation/llvm-ngram-coverage.h | |
parent | fac108476c1cb5326cf4339b2a4c846828698816 (diff) | |
download | afl++-996986bed5f2dd97a3d76f584d8eddc1203f8396.tar.gz |
first batch of changes
Diffstat (limited to 'instrumentation/llvm-ngram-coverage.h')
-rw-r--r-- | instrumentation/llvm-ngram-coverage.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/instrumentation/llvm-ngram-coverage.h b/instrumentation/llvm-ngram-coverage.h new file mode 100644 index 00000000..12b666e9 --- /dev/null +++ b/instrumentation/llvm-ngram-coverage.h @@ -0,0 +1,18 @@ +#ifndef AFL_NGRAM_CONFIG_H +#define AFL_NGRAM_CONFIG_H + +#include "../config.h" + +#if (MAP_SIZE_POW2 <= 16) +typedef u16 PREV_LOC_T; +#elif (MAP_SIZE_POW2 <= 32) +typedef u32 PREV_LOC_T; +#else +typedef u64 PREV_LOC_T; +#endif + +/* Maximum ngram size */ +#define NGRAM_SIZE_MAX 16U + +#endif + |