\hypertarget{bswp_8h}{
\section{bswp.h File Reference}
\label{bswp_8h}\index{bswp.h@{bswp.h}}
}
Stripped-down local copy of the PBS swap routines. 



This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=87pt]{bswp_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static \_\-\_\-inline void \hyperlink{bswp_8h_a0}{bswp\_\-\_\-store32} (unsigned int $\ast$dst, unsigned int val)
\begin{CompactList}\small\item\em Store the byte-swapped version of {\em val\/} in {\em dst\/}. \item\end{CompactList}\item 
static \_\-\_\-inline unsigned int \hyperlink{bswp_8h_a1}{bswp\_\-\_\-load32} (unsigned int $\ast$src)
\begin{CompactList}\small\item\em Return the byte-swapped version of the 32-bit value at {\em dst\/}. \item\end{CompactList}\item 
static \_\-\_\-inline void \hyperlink{bswp_8h_a2}{bswp\_\-\_\-store32b} (unsigned int $\ast$dst, unsigned int val)
\begin{CompactList}\small\item\em Store the big endian representation of {\em val\/} in {\em dst\/}. \item\end{CompactList}\item 
static \_\-\_\-inline unsigned int \hyperlink{bswp_8h_a3}{bswp\_\-\_\-load32b} (unsigned int $\ast$src)
\begin{CompactList}\small\item\em Return the big-endian version of the 32-bit value at {\em src\/}. \item\end{CompactList}\item 
\hypertarget{bswp_8h_a4}{
static \_\-\_\-inline void {\bf bswp\_\-\_\-store32l} (unsigned int $\ast$dst, unsigned int val)}
\label{bswp_8h_a4}

\item 
\hypertarget{bswp_8h_a5}{
static \_\-\_\-inline unsigned int {\bf bswp\_\-\_\-load32l} (unsigned int $\ast$src)}
\label{bswp_8h_a5}

\end{CompactItemize}


\subsection{Detailed Description}
Stripped-down local copy of the PBS swap routines. 

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


\footnotesize\begin{verbatim}   CVS $Id: bswp.h,v 1.2 2006/01/24 00:20:24 russell Exp $
\end{verbatim}
\normalsize


\subsection{Function Documentation}
\hypertarget{bswp_8h_a1}{
\index{bswp.h@{bswp.h}!bswp__load32@{bswp\_\-\_\-load32}}
\index{bswp__load32@{bswp\_\-\_\-load32}!bswp.h@{bswp.h}}
\subsubsection[bswp\_\-\_\-load32]{\setlength{\rightskip}{0pt plus 5cm}unsigned int bswp\_\-\_\-load32 (unsigned int $\ast$ {\em src})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{bswp_8h_a1}


Return the byte-swapped version of the 32-bit value at {\em dst\/}. 

\begin{Desc}
\item[Returns:]The byte-swapped version of the 32-bit value at {\em dst\/} \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The source location to fetch the 32-bit value from\end{description}
\end{Desc}
\hypertarget{bswp_8h_a3}{
\index{bswp.h@{bswp.h}!bswp__load32b@{bswp\_\-\_\-load32b}}
\index{bswp__load32b@{bswp\_\-\_\-load32b}!bswp.h@{bswp.h}}
\subsubsection[bswp\_\-\_\-load32b]{\setlength{\rightskip}{0pt plus 5cm}unsigned int bswp\_\-\_\-load32b (unsigned int $\ast$ {\em src})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{bswp_8h_a3}


Return the big-endian version of the 32-bit value at {\em src\/}. 

\begin{Desc}
\item[Returns:]The big-endian version of the 32-bit value at {\em src\/} \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The location to fetch the 32-bit value from\end{description}
\end{Desc}
\begin{Desc}
\item[]On big-endian machines, no byte-swapping takes place\end{Desc}
\hypertarget{bswp_8h_a0}{
\index{bswp.h@{bswp.h}!bswp__store32@{bswp\_\-\_\-store32}}
\index{bswp__store32@{bswp\_\-\_\-store32}!bswp.h@{bswp.h}}
\subsubsection[bswp\_\-\_\-store32]{\setlength{\rightskip}{0pt plus 5cm}void bswp\_\-\_\-store32 (unsigned int $\ast$ {\em dst}, unsigned int {\em val})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{bswp_8h_a0}


Store the byte-swapped version of {\em val\/} in {\em dst\/}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em dst}]The destination address, must be 32-bit aligned \item[{\em val}]The 32-bit value to store\end{description}
\end{Desc}
\hypertarget{bswp_8h_a2}{
\index{bswp.h@{bswp.h}!bswp__store32b@{bswp\_\-\_\-store32b}}
\index{bswp__store32b@{bswp\_\-\_\-store32b}!bswp.h@{bswp.h}}
\subsubsection[bswp\_\-\_\-store32b]{\setlength{\rightskip}{0pt plus 5cm}void bswp\_\-\_\-store32b (unsigned int $\ast$ {\em dst}, unsigned int {\em val})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{bswp_8h_a2}


Store the big endian representation of {\em val\/} in {\em dst\/}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em dst}]The destination address, must be 32-bit aligned \item[{\em val}]The 32-bit value to store\end{description}
\end{Desc}
\begin{Desc}
\item[]On big-endian machine no byte-swapping occurs\end{Desc}
