#define MAX_PRACH_CONFIG_IDX 256
#define MAX_MU_PUSCH 4
#define TOTAL_TBSIZE_VALUES 93
-#define SET_BITS(_startBit, _numBits, _byte) \
-{ \
- _byte = (((~((~0)<<_numBits))<<_startBit)); \
+#define SET_BITS_MSB(_startBit, _numBits, _byte) \
+{ \
+ _byte = (~((0xFF) >> _numBits)); \
+ _byte >>= _startBit; \
+}
+
+#define SET_BITS_LSB(_startBit, _numBits, _byte) \
+{ \
+ _byte = (~((0xFF) << _numBits)); \
+ _byte <<= _startBit; \
}
/* functions declarations */