aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/memneq/include.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/memneq/include.h')
-rw-r--r--src/compat/memneq/include.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compat/memneq/include.h b/src/compat/memneq/include.h
new file mode 100644
index 0000000..2d18acd
--- /dev/null
+++ b/src/compat/memneq/include.h
@@ -0,0 +1,5 @@
+extern noinline unsigned long __crypto_memneq(const void *a, const void *b, size_t size);
+static inline int crypto_memneq(const void *a, const void *b, size_t size)
+{
+ return __crypto_memneq(a, b, size) != 0UL ? 1 : 0;
+}