aboutsummaryrefslogtreecommitdiff
path: root/src/common/di_ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/di_ops.h')
-rw-r--r--src/common/di_ops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/di_ops.h b/src/common/di_ops.h
index 1b223d9ab6..4a212b0ca2 100644
--- a/src/common/di_ops.h
+++ b/src/common/di_ops.h
@@ -24,5 +24,7 @@ int tor_memeq(const void *a, const void *b, size_t sz);
* implementation.
*/
#define fast_memcmp(a,b,c) (memcmp((a),(b),(c)))
+#define fast_memeq(a,b,c) (0==memcmp((a),(b),(c)))
+#define fast_memneq(a,b,c) (0!=memcmp((a),(b),(c)))
#endif