41 #ifndef X2SEQUENCE_HPP
42 #define X2SEQUENCE_HPP
203 uint32_t retArg = 0L;
204 int ndx1 = adjustedCount /
MAX_BIT;
205 int offset = adjustedCount - (ndx1 *
MAX_BIT);
208 if (offset==0) retArg =
bitsP[ndx1];
235 int numRemainingInSequence =
MAX_X2_COUNT - adjustedCount;
236 int numRemainingInWord;
242 numRemainingInWord =
MAX_BIT - offset;
243 retArg =
bitsP[ndx1++] << offset;
244 numFilled = numRemainingInWord;
245 numRemainingInSequence -= numRemainingInWord;
250 numRemainingInWord = numRemainingInSequence;
254 numFilled += numRemainingInSequence;
259 int numNeeded =
MAX_BIT - numFilled;
263 if (numNeeded <= numRemainingInWord)
275 temp <<= (
MAX_BIT - (numRemainingInWord+numFilled));
279 numFilled += numRemainingInWord;
280 numNeeded =
MAX_BIT - numFilled;
290 #endif // X2SEQUENCE_HPP