summaryrefslogtreecommitdiff
path: root/lib/sail.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sail.c')
-rw-r--r--lib/sail.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sail.c b/lib/sail.c
index b41cacd3..4cb9cdc1 100644
--- a/lib/sail.c
+++ b/lib/sail.c
@@ -134,6 +134,12 @@ void concat_str(sail_string *stro, const sail_string str1, const sail_string str
/* ***** Sail integers ***** */
+inline
+bool EQUAL(mach_int)(const mach_int op1, const mach_int op2)
+{
+ return op1 == op2;
+}
+
#ifndef USE_INT128
inline
@@ -341,6 +347,11 @@ void pow2(sail_int *rop, const sail_int exp) {
/* ***** Sail bitvectors ***** */
+bool EQUAL(mach_bits)(const mach_bits op1, const mach_bits op2)
+{
+ return op1 == op2;
+}
+
void CREATE(sail_bits)(sail_bits *rop)
{
rop->bits = malloc(sizeof(mpz_t));