aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/ta_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/ta_utils.h')
-rw-r--r--src/lib/utils/ta_utils.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/utils/ta_utils.h b/src/lib/utils/ta_utils.h
index 36ee551cc..866a4cc37 100644
--- a/src/lib/utils/ta_utils.h
+++ b/src/lib/utils/ta_utils.h
@@ -21,7 +21,16 @@ namespace TA_CM {
* @param in an integer
* @return 0 if in == 0 else 0xFFFFFFFF
*/
-u32bit gen_mask_u32bit(u32bit in);
+u32bit expand_mask_u32bit(u32bit in);
+
+
+/**
+ * Expand an input to a bit mask depending on it being being zero or
+ * non-zero
+ * @ param in the input
+ * @return the mask 0xFFFF if tst is non-zero and 0 otherwise
+ */
+u16bit expand_mask_u16bit(u16bit in);
/**
* Branch-free maximum