LAR Library
1.14
|
bits.h
Go to the documentation of this file.
int64_t bitsExtractInt(const bitsBuffer_t *b, int offset, int count)
Extract a sub-sequence of a bit buffer as an integer.
int bitsShiftLeft(bitsBuffer_t *b, int index, int nbits, int nshift)
Shift b left by nshift bits.
uint8_t bitsBuffer_t
A bit-buffer is a sequence of 8-bits unsigned integers.
Definition: bits.h:46
int bitsRotateRight(bitsBuffer_t *b, int index, int nbits, int nrotate)
Rotate b right by nrotate bits.
int bitsAppendInt(uint64_t bits, int nbits, bitsBuffer_t *dst, int dstCount)
Append the bits extracted from an integer to a bit buffer.
int bitsRotateLeft(bitsBuffer_t *b, int index, int nbits, int nrotate)
Rotate b left by nrotate bits.
int bitsCopy(const bitsBuffer_t *src, int srcOffset, int srcCount, bitsBuffer_t *dst, int dstOffset)
Copy a sequence of bits from one buffer to another.
int bitsShiftRight(bitsBuffer_t *b, int index, int nbits, int nshift)
Shift b right by nshift bits.
int bitsSetRange(bitsBuffer_t *b, int offset, int count, int value)
Set a range of bits on a buffer.
Larlib basic definitions.
int bitsAppend(const bitsBuffer_t *src, int srcOffset, int srcCount, bitsBuffer_t *dst, int dstCount)
Append one bit buffer to another.
int bitsBlt(const bitsBuffer_t *src, int srcOffset, int srcCount, enum bitsBltOp_t op, bitsBuffer_t *dst, int dstOffset)
Combine two bit buffers using a bit operation.
Generated on Mon Mar 27 2017 15:42:52 for LAR Library by 1.8.9.1