GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EDS / dev

Constituent: ffstest     Tag: mcp750


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 "EDS/FFS.h"

Include dependency graph for ffstest.c:


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.2 2005/10/13 22:00:58 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

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

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


Generated on Thu Dec 13 05:42:59 2007 by  doxygen 1.4.4