+ /* Copying 48 LSBs from 64-bit integer to the 45 MSBS in 6-byte array
+ * The first (left-most / most significant) bit corresponds to the first RB
+ * group in the BWP, and so on
+ */
+ /* On right shifting freqAllocBitMap by 40 bits, the bits 47 to 40 of freqAllocBitMap
+ * will now become 8-LSB. Copying these 8-bits into freqDomain[].
+ * Now shifting freqAllocBitMap by 32 bits, the bit 39 to 32 of freqAllocBitMap will
+ * now become 8-LSB. Copying these 8-bits into next index of freqDomain.
+ * and so on.
+ */
+ numBitsToRightShift = 40;
+ mask = 0x0000FF0000000000;
+ for(idx=0; idx<FREQ_DOM_RSRC_SIZE; idx++)
+ {
+ freqDomain[idx] = (freqAllocBitMap & mask) >> numBitsToRightShift;
+ numBitsToRightShift -= 8;
+ mask = mask >> 8;