GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-3-2
Constituent: encdec     Tag: mv2304
#include "LDT/BWP.h"
#include "LDT/BW.h"
#include "ffs.h"
Include dependency graph for BWP.c:
Functions | |
BW_vector | BWP_collapseL (unsigned int val, unsigned int msk) |
Collapses the bit pattern in val considering only those bits that are set in msk. The bit pattern is left justified. | |
BW_vector | BWP_collapseR (unsigned int val, unsigned int msk) |
Collapses the bit pattern in val considering only those bits that are set in msk. The bit pattern is right justified. | |
__inline BW_vector | BWP_convertR (unsigned int val, unsigned int nval, unsigned int nexp) |
Encodes small integer values that are embedded in a large field. | |
BW_vector | BWP_convertL (unsigned int val, unsigned int nval, unsigned int nexp) |
Encodes small integer values that are embedded in a large field. |
CVS $Id: BWP.c,v 1.2 2006/11/01 21:23:35 russell Exp $
|
Collapses the bit pattern in val considering only those bits that are set in msk. The bit pattern is left justified.
|
|
Collapses the bit pattern in val considering only those bits that are set in msk. The bit pattern is right justified.
|
|
Encodes small integer values that are embedded in a large field.
|
|
Encodes small integer values that are embedded in a large field.
bwv = BWP__convertR (0x1fff, 25, 4); One can encode up to 15 leading zeroes. In this case there are only 8. This gets encoded as EXP = 7 (this is the usual n-1), MANTISSA = 0xfff or 0x7fff, NBITS = 16.
Of course, some of these are silly combinations in the sense that the would produce no compression and would more than likely result in an expansion. |