\hypertarget{ffstest_8c}{
\section{ffstest.c File Reference}
\label{ffstest_8c}\index{ffstest.c@{ffstest.c}}
}
Quickie test of the the Find First Set facility. 

{\tt \#include $<$stdio.h$>$}\par
{\tt \#include \char`\"{}EDS/TMR.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/FFS.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{ffstest_8c_b7136b30a39841fa5a5726c9ab34bca0}{ffstest} (void)
\begin{CompactList}\small\item\em The test program. \item\end{CompactList}\item 
static int \hyperlink{ffstest_8c_e4fd0d1a0e0242a68331b9b1aea32220}{gFFS} (unsigned lw)
\begin{CompactList}\small\item\em Provides the 'gold' standard to check the library version of the FFS facility. \item\end{CompactList}\item 
int \hyperlink{ffstest_8c_3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\begin{CompactList}\small\item\em Main program on host platfors. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Quickie test of the the Find First Set facility. 

\begin{Desc}
\item[Author:]JJRussell - \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}


\footnotesize\begin{verbatim}

   CVS $Id: ffstest.c,v 1.2 2005/10/13 22:00:58 russell Exp $
\end{verbatim}
\normalsize
 

\subsection{Function Documentation}
\hypertarget{ffstest_8c_b7136b30a39841fa5a5726c9ab34bca0}{
\index{ffstest.c@{ffstest.c}!ffstest@{ffstest}}
\index{ffstest@{ffstest}!ffstest.c@{ffstest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ffstest (void)}}
\label{ffstest_8c_b7136b30a39841fa5a5726c9ab34bca0}


The test program. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0,if}]the test is successful \item[{\em -1,if}]the test fails\end{description}
\end{Desc}
\begin{Desc}
\item[]Does both a functional and performance test \end{Desc}
\hypertarget{ffstest_8c_e4fd0d1a0e0242a68331b9b1aea32220}{
\index{ffstest.c@{ffstest.c}!gFFS@{gFFS}}
\index{gFFS@{gFFS}!ffstest.c@{ffstest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int gFFS (unsigned {\em lw})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{ffstest_8c_e4fd0d1a0e0242a68331b9b1aea32220}


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

\begin{Desc}
\item[Returns:]The number (MSB=0) of the first set bit\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em lw}]The 32-bit word to scan \end{description}
\end{Desc}
\hypertarget{ffstest_8c_3c04138a5bfe5d72780bb7e82a18e627}{
\index{ffstest.c@{ffstest.c}!main@{main}}
\index{main@{main}!ffstest.c@{ffstest.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, char $\ast$$\ast$ {\em argv})}}
\label{ffstest_8c_3c04138a5bfe5d72780bb7e82a18e627}


Main program on host platfors. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0,if}]the test is successful \item[{\em -1,if}]the test fails\end{description}
\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em argc}]The argument count, unused \item[{\em argv}]The vector of arguments, unused \end{description}
\end{Desc}
