#define CONF_TYPE u64a
#define CONF_HASH_CALL mul_hash_64
-typedef enum LitInfoFlags {
- NoRepeat = 2,
-} LitInfoFlags;
+/**
+ * \brief Flag indicating this literal doesn't need to be delivered more than
+ * once, used in LitInfo::flags.
+ */
+#define FDR_LIT_FLAG_NOREPEAT 2
/**
* \brief Structure describing a literal, linked to by FDRConfirm.
hwlm_group_t groups;
u32 id; // literal ID as passed in
u8 size;
- u8 flags; /* LitInfoFlags */
+ u8 flags; //!< bitfield of flags from FDR_LIT_FLAG_* above.
u8 next;
};
#define FDRC_FLAG_NO_CONFIRM 1
+#define FDRC_FLAG_NOREPEAT 2
/**
* \brief FDR confirm header.
info.id = lit.id;
u8 flags = 0;
if (lit.noruns) {
- flags |= NoRepeat;
+ flags |= FDR_LIT_FLAG_NOREPEAT;
}
info.flags = flags;
info.size = verify_u8(max(lit.msk.size(), lit.s.size()));
if (!make_confirm) {
flags = FDRC_FLAG_NO_CONFIRM;
if (lits[0].noruns) {
- flags |= NoRepeat; // messy - need to clean this up later as flags is sorta kinda obsoleted
+ flags |= FDRC_FLAG_NOREPEAT; // messy - need to clean this up later as flags is sorta kinda obsoleted
}
mult = 0;
soleLitSize = lits[0].s.size() - 1;
goto out;
}
- if ((*last_match == li->id) && (li->flags & NoRepeat)) {
+ if ((*last_match == li->id) && (li->flags & FDR_LIT_FLAG_NOREPEAT)) {
goto out;
}
} else {
u32 id = fdrc->nBitsOrSoleID;
- if ((*last_match == id) && (fdrc->flags & NoRepeat)) {
+ if ((*last_match == id) && (fdrc->flags & FDRC_FLAG_NOREPEAT)) {
return;
}
*last_match = id;
const u32 id = fdrc->nBitsOrSoleID;
const u32 len = fdrc->soleLitSize;
- if ((*last_match == id) && (fdrc->flags & NoRepeat)) {
+ if ((*last_match == id) && (fdrc->flags & FDRC_FLAG_NOREPEAT)) {
return;
}