aboutgitcodelistschat:MatrixIRC
path: root/common
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-04-20 16:43:45 +0200
committerAlice Frosi <afrosi@redhat.com>2023-04-21 11:59:21 +0200
commit3cce68f2a2710fa86c2f0b263ba212a4a3cd4b2e (patch)
treeae1082dd7b10b16e97daad6281314f00a0d35446 /common
parent13f5fce51b3644e24a8bd8b86b80c91e8af7ac13 (diff)
downloadseitan-3cce68f2a2710fa86c2f0b263ba212a4a3cd4b2e.tar
seitan-3cce68f2a2710fa86c2f0b263ba212a4a3cd4b2e.tar.gz
seitan-3cce68f2a2710fa86c2f0b263ba212a4a3cd4b2e.tar.bz2
seitan-3cce68f2a2710fa86c2f0b263ba212a4a3cd4b2e.tar.lz
seitan-3cce68f2a2710fa86c2f0b263ba212a4a3cd4b2e.tar.xz
seitan-3cce68f2a2710fa86c2f0b263ba212a4a3cd4b2e.tar.zst
seitan-3cce68f2a2710fa86c2f0b263ba212a4a3cd4b2e.zip
Add op_cmp type
Diffstat (limited to 'common')
-rw-r--r--common/gluten.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/gluten.h b/common/gluten.h
index 8370cf5..eb965d9 100644
--- a/common/gluten.h
+++ b/common/gluten.h
@@ -108,10 +108,20 @@ struct op_copy_args {
struct copy_arg args[6];
};
+enum op_cmp_type {
+ CMP_EQ,
+ CMP_NE,
+ CMP_GT,
+ CMP_GE,
+ CMP_LT,
+ CMP_LE,
+};
+
struct op_cmp {
uint16_t s1_off;
uint16_t s2_off;
size_t size;
+ enum op_cmp_type cmp;
unsigned int jmp;
};