* If we have a carry in, but no carry out:
* src1 and src2 can neither be 1. So the overall result bit is 1. Hence:
* ~1 + 0 + 0 => 0. We return false.
+ *
+ * @ingroup api_base_utils
*/
static inline bool
findCarry(int width, uint64_t dest, uint64_t src1, uint64_t src2)
/**
* Calculate the overflow flag from an addition.
+ *
+ * @ingroup api_base_utils
*/
static inline bool
findOverflow(int width, uint64_t dest, uint64_t src1, uint64_t src2)
* If the intermediate is still one, then there is exactly one high bit
* which does not have a corresponding high bit. Therefore, the value must
* have odd parity, and we return 1 accordingly. Otherwise we return 0.
+ *
+ * @ingroup api_base_utils
*/
static inline bool
findParity(int width, uint64_t dest)
/**
* Calculate the negative flag.
+ *
+ * @ingroup api_base_utils
*/
static inline bool
findNegative(int width, uint64_t dest)
/**
* Calculate the zero flag.
+ *
+ * @ingroup api_base_utils
*/
static inline bool
findZero(int width, uint64_t dest)