GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-6 > ffstest / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

ffstest.c File Reference

Quickie test of the the Find First Set facility. More...

#include <stdio.h>
#include <EDS/TMR.h>
#include <PBI/FFS.ih>

Functions

int ffstest (void)
 The test program.
static int gFFS (unsigned lw)
 Provides the 'gold' standard to check the library version of the FFS facility.
int main (int argc, char **argv)
 Main program on host platfors.


Detailed Description

Quickie test of the the Find First Set facility.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: ffstest.c,v 1.3 2011/03/25 22:16:55 russell Exp $

Function Documentation

int ffstest ( void   ) 

The test program.

Return values:
0,if the test is successful
-1,if the test fails
Does both a functional and performance test

References gFFS().

Referenced by main().

static int gFFS ( unsigned  lw  )  [inline, static]

Provides the 'gold' standard to check the library version of the FFS facility.

Returns:
The number (MSB=0) of the first set bit
Parameters:
lw The 32-bit word to scan

Referenced by ffstest().

int main ( int  argc,
char **  argv 
)

Main program on host platfors.

Return values:
0,if the test is successful
-1,if the test fails
Parameters:
argc The argument count, unused
argv The vector of arguments, unused

References ffstest().


Generated on Fri Dec 9 16:29:23 2011 by  doxygen 1.5.8