Lines Matching refs:numberOfBits
157 INT FDK_get(HANDLE_FDK_BITBUF hBitBuf, const UINT numberOfBits) { in FDK_get() argument
161 hBitBuf->BitNdx = (hBitBuf->BitNdx + numberOfBits) & (hBitBuf->bufBits - 1); in FDK_get()
162 hBitBuf->ValidBits -= numberOfBits; in FDK_get()
176 return (tx >> (32 - numberOfBits)); in FDK_get()
215 INT FDK_getBwd(HANDLE_FDK_BITBUF hBitBuf, const UINT numberOfBits) { in FDK_getBwd() argument
221 hBitBuf->BitNdx = (hBitBuf->BitNdx - numberOfBits) & (hBitBuf->bufBits - 1); in FDK_getBwd()
222 hBitBuf->ValidBits += numberOfBits; in FDK_getBwd()
232 if (bitOffset && numberOfBits > 24) { in FDK_getBwd()
245 return (txa >> (32 - numberOfBits)); in FDK_getBwd()
248 void FDK_put(HANDLE_FDK_BITBUF hBitBuf, UINT value, const UINT numberOfBits) { in FDK_put() argument
249 if (numberOfBits != 0) { in FDK_put()
253 hBitBuf->BitNdx = (hBitBuf->BitNdx + numberOfBits) & (hBitBuf->bufBits - 1); in FDK_put()
254 hBitBuf->ValidBits += numberOfBits; in FDK_put()
265 UINT tmp = (value << (32 - numberOfBits)) >> bitOffset; in FDK_put()
266 UINT mask = ~((BitMask[numberOfBits] << (32 - numberOfBits)) >> bitOffset); in FDK_put()
280 if ((bitOffset + numberOfBits) > 32) { in FDK_put()
284 int bits = (bitOffset + numberOfBits) & 7; in FDK_put()
294 const UINT numberOfBits) { in FDK_putBwd() argument
299 UINT mask = ~(BitMask[numberOfBits] << bitOffset); in FDK_putBwd()
303 hBitBuf->BitNdx = (hBitBuf->BitNdx - numberOfBits) & (hBitBuf->bufBits - 1); in FDK_putBwd()
304 hBitBuf->ValidBits -= numberOfBits; in FDK_putBwd()
315 tmp = value >> (32 - numberOfBits) << bitOffset; in FDK_putBwd()
329 if ((bitOffset + numberOfBits) > 32) { in FDK_putBwd()
331 (UCHAR)(value >> (64 - numberOfBits - bitOffset)) | in FDK_putBwd()
333 ~(BitMask[bitOffset] >> (32 - numberOfBits))); in FDK_putBwd()
338 void FDK_pushBack(HANDLE_FDK_BITBUF hBitBuf, const UINT numberOfBits, in FDK_pushBack() argument
341 (config == 0) ? (UINT)((INT)hBitBuf->ValidBits + (INT)numberOfBits) in FDK_pushBack()
342 : ((UINT)((INT)hBitBuf->ValidBits - (INT)numberOfBits)); in FDK_pushBack()
343 hBitBuf->BitNdx = ((UINT)((INT)hBitBuf->BitNdx - (INT)numberOfBits)) & in FDK_pushBack()
348 void FDK_pushForward(HANDLE_FDK_BITBUF hBitBuf, const UINT numberOfBits, in FDK_pushForward() argument
351 (config == 0) ? ((UINT)((INT)hBitBuf->ValidBits - (INT)numberOfBits)) in FDK_pushForward()
352 : (UINT)((INT)hBitBuf->ValidBits + (INT)numberOfBits); in FDK_pushForward()
354 (UINT)((INT)hBitBuf->BitNdx + (INT)numberOfBits) & (hBitBuf->bufBits - 1); in FDK_pushForward()