GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LDT / V0-3-0
Constituent: encdec     Tag: rad750
#include "LDT/BWU.h"
#include "ffs.h"
#include <stdio.h>
Include dependency graph for BWU.c:

Functions | |
| unsigned int | BWU_expand (unsigned int wrd, unsigned int msk) |
| Expands wrd according to the bits set in msk. This is the inverse operation of BWP_collapse. | |
| unsigned int | BWU_revert (unsigned int wrd, unsigned int nwrd, unsigned int nexp) |
| Reverts wrd to the original integer. This is the inverse operation of BWP_convert. | |
CVS $Id: BWU.c,v 1.1 2006/09/13 17:08:33 russell Exp $
|
||||||||||||
|
Expands wrd according to the bits set in msk. This is the inverse operation of BWP_collapse.
Example msk = 0x001101110;
wrd = 0x1011;
Expand wrd where the 0's in msk are
out = 0x001001100;
If one collapsed out
msk = 0x001101110;
out = 0x001001100;
wrd = 1011;
|
|
||||||||||||||||
|
Reverts wrd to the original integer. This is the inverse operation of BWP_convert.
|
1.4.4