GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-11

Constituent: test_ffs     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

test_ffs.c File Reference

Unit test for the FFS routines. More...


Detailed Description

Unit test for the FFS routines.

Author:
JJRussell - russell@slac.stanford.edu
   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

Generated on Wed Dec 20 05:56:56 2006 by  doxygen 1.4.4