* Added function to generate Mask with given bit set.
* Added a function to generate Mask with a sequence of clear bits.
Change-Id: I7cf0b0915ffd327a98537a89f7b3f60314ea6098
Signed-off-by: kajoljain379 <kajoljain797@gmail.com>
#define extract(x, shift, mask) ((x >> shift) & mask)
#define align(x, bits) (x << bits)
+#define setBitMask(shift) ( (uint64_t)1 << shift)
+#define unsetMask(start ,end)(~((setBitMask(start))-1) | ((setBitMask(end))-1))
#define getRTS(x) ((extract(x, RTS1_SHIFT, RTS1_MASK) << RTS2_BITS) | \
(extract(x, RTS2_SHIFT, RTS2_MASK)))