vectorial top-k CTX first implementation

This commit is contained in:
Andrea Fioraldi
2021-03-04 14:50:26 +01:00
parent 02f3319256
commit 0aa93afeb8
5 changed files with 144 additions and 21 deletions

View File

@ -0,0 +1,21 @@
#ifndef AFL_NGRAM_CONFIG_H
#define AFL_NGRAM_CONFIG_H
#include "types.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
/* Maximum K for top-K context sensitivity */
#define CTX_MAX_K 32U
#endif