\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. 

\subsection*{Functions}
\begin{CompactItemize}
\item 
static \_\-\_\-inline void \hyperlink{bswp_8h_91c91141d27498c221669f590100208c}{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_25e33e640c696cf2f4c4f0fdd2f6c2fb}{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_696a43cfe3cd9cbe78c11208cac4df08}{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_adaa02d4a3834effc8655b6ccebafc15}{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_9a5c0fde5d9e81e1dcbdcdab74e1de65}{
static \_\-\_\-inline void \textbf{bswp\_\-\_\-store32l} (unsigned int $\ast$dst, unsigned int val)}
\label{bswp_8h_9a5c0fde5d9e81e1dcbdcdab74e1de65}

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

\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_25e33e640c696cf2f4c4f0fdd2f6c2fb}{
\index{bswp.h@{bswp.h}!bswp__load32@{bswp\_\-\_\-load32}}
\index{bswp__load32@{bswp\_\-\_\-load32}!bswp.h@{bswp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned int bswp\_\-\_\-load32 (unsigned int $\ast$ {\em src})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{bswp_8h_25e33e640c696cf2f4c4f0fdd2f6c2fb}


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_adaa02d4a3834effc8655b6ccebafc15}{
\index{bswp.h@{bswp.h}!bswp__load32b@{bswp\_\-\_\-load32b}}
\index{bswp__load32b@{bswp\_\-\_\-load32b}!bswp.h@{bswp.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned int bswp\_\-\_\-load32b (unsigned int $\ast$ {\em src})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{bswp_8h_adaa02d4a3834effc8655b6ccebafc15}


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_91c91141d27498c221669f590100208c}{
\index{bswp.h@{bswp.h}!bswp__store32@{bswp\_\-\_\-store32}}
\index{bswp__store32@{bswp\_\-\_\-store32}!bswp.h@{bswp.h}}
\subsubsection{\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_91c91141d27498c221669f590100208c}


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_696a43cfe3cd9cbe78c11208cac4df08}{
\index{bswp.h@{bswp.h}!bswp__store32b@{bswp\_\-\_\-store32b}}
\index{bswp__store32b@{bswp\_\-\_\-store32b}!bswp.h@{bswp.h}}
\subsubsection{\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_696a43cfe3cd9cbe78c11208cac4df08}


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}
