AnsweredAssumed Answered

Packing 8 bit data data into 32 bit words

Question asked by snoopy on Jun 9, 2011
Latest reply on Jun 10, 2011 by CraigG



I have some bit mapped graphics used for LCD displays and each bit of data is 8 bits long. If I declare an array of char's it will allocate a 32 bit word to each 8 bit value and thus waste space. This will make it four times as large as it needs to be even when using char array declaration because VDSP treats a char as a 32 bit value. Is there anyway of packing 4 bytes of data into a single 32 bit word rather than allocating 4 32 bit words ??