//\r
// Left shift NumOfBits of bits in advance\r
//\r
- Sd->mBitBuf = (UINT32) (Sd->mBitBuf << NumOfBits);\r
+ Sd->mBitBuf = (UINT32) LShiftU64 (((UINT64)Sd->mBitBuf), NumOfBits);\r
\r
//\r
// Copy data needed in bytes into mSbuBitBuf\r
//\r
while (NumOfBits > Sd->mBitCount) {\r
-\r
- Sd->mBitBuf |= (UINT32) (Sd->mSubBitBuf << (NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount)));\r
+ NumOfBits = (UINT16) (NumOfBits - Sd->mBitCount);\r
+ Sd->mBitBuf |= (UINT32) LShiftU64 (((UINT64)Sd->mSubBitBuf), NumOfBits);\r
\r
if (Sd->mCompSize > 0) {\r
//\r
/**\r
Reads code lengths for the Extra Set or the Position Set.\r
\r
- Read in the Extra Set or Pointion Set Length Arrary, then\r
+ Read in the Extra Set or Position Set Length Array, then\r
generate the Huffman code mapping for them.\r
\r
@param Sd The global scratch data.\r
Sd->mBlockSize = (UINT16) GetBits (Sd, 16);\r
\r
//\r
- // Read in the Extra Set Code Length Arrary,\r
+ // Read in the Extra Set Code Length Array,\r
// Generate the Huffman code mapping table for Extra Set.\r
//\r
Sd->mBadTableFlag = ReadPTLen (Sd, NT, TBIT, 3);\r
}\r
\r
//\r
- // Read in and decode the Char&Len Set Code Length Arrary,\r
+ // Read in and decode the Char&Len Set Code Length Array,\r
// Generate the Huffman code mapping table for Char&Len Set.\r
//\r
ReadCLen (Sd);\r
\r
//\r
- // Read in the Position Set Code Length Arrary, \r
+ // Read in the Position Set Code Length Array,\r
// Generate the Huffman code mapping table for the Position Set.\r
//\r
Sd->mBadTableFlag = ReadPTLen (Sd, MAXNP, Sd->mPBit, (UINT16) (-1));\r