Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

bit_operations.h File Reference

Go to the source code of this file.

Functions

 SPAN_DECLARE (uint16_t) bit_reverse16(uint16_t data)
 Bit reverse a 16 bit word.
 SPAN_DECLARE (uint32_t) bit_reverse32(uint32_t data)
 Bit reverse a 32 bit word.
 SPAN_DECLARE (void) bit_reverse(uint8_t to[]
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (int) one_bits32(uint32_t x)
 Find the number of set bits in a 32 bit word.

Variables

const uint8_t from []
const uint8_t int len


Detailed Description


Function Documentation

SPAN_DECLARE int32_t   ) 
 

Find the number of set bits in a 32 bit word.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Parameters:
to The buffer to place the reversed data in.
from The buffer containing the data to be reversed.
len The length of the data in the buffer.

SPAN_DECLARE uint32_t   ) 
 

Bit reverse a 32 bit word.

Parameters:
s A pointer to the bitstream context.
c A pointer to the bitstream input buffer.
bits The number of bits of value to be grabbed. 1 to 25 bits is valid.
Returns:
The value retrieved from the input buffer.

SPAN_DECLARE uint16_t   ) 
 

Bit reverse a 16 bit word.

Parameters:
x The word to be searched.
Returns:
The mask.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1