GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-11
Constituent: test_ffs     Tag: mv2304
CVS $Id
The FFS routines are a collection of inline routines that efficiently the Find First Set bit in a 32 bit word. Currently all hardware architectures have a single machineinstruction for performing the basic operations, however details differ. Some machines scan from Most Significant Bit (MSB) to Least Significant Bit and some machines number the bits MSB = 0, while others count LSB = 0. Consequently, a series of four routines, covering the 4 possibilities
(scan MSB -> LSB or scan LSB -> MSB) x (count MSB = 0 or count LSB = 0)
are provided.
The test can be run from the command line by typing
$ test_ffs