summaryrefslogtreecommitdiff
path: root/fuzzy.c
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-03-24 14:25:57 +0100
committerHelmut Grohne <helmut@subdivi.de>2013-03-24 14:25:57 +0100
commit95f03d03491f0673d4c527f5a23697be44ad0a28 (patch)
tree9c28dc0506ce1608d35bdbc60cae283ed5067fe9 /fuzzy.c
parent2c21b4f1203ba69727c64f1a3bf2fe84cc1565db (diff)
downloadssdeep-95f03d03491f0673d4c527f5a23697be44ad0a28.tar.gz
ship a fuzzy.h compatible with ssdeep's fuzzy.h
Diffstat (limited to 'fuzzy.c')
-rw-r--r--fuzzy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fuzzy.c b/fuzzy.c
index fd36039..e165107 100644
--- a/fuzzy.c
+++ b/fuzzy.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "fuzzy.h"
#if defined(__GNUC__) && __GNUC__ >= 3
#define likely(x) __builtin_expect(!!(x), 1)
@@ -36,8 +37,6 @@
#define unlikely(x) x
#endif
-#define SPAMSUM_LENGTH 64
-#define FUZZY_MAX_RESULT (SPAMSUM_LENGTH + (SPAMSUM_LENGTH/2 + 20))
#define ROLLING_WINDOW 7
#define MIN_BLOCKSIZE 3
#define HASH_PRIME 0x01000193