\hypertarget{PARITY_8h}{
\section{PARITY.h File Reference}
\label{PARITY_8h}\index{PARITY.h@{PARITY.h}}
}
Priority calculation, callable interface.  


\subsection*{Defines}
\begin{CompactItemize}
\item 
\hypertarget{PARITY_8h_8257452bf526e3902ef674bd547e773c}{
\#define \hyperlink{PARITY_8h_8257452bf526e3902ef674bd547e773c}{PARITY\_\-4}(\_\-nibble)~((PARITY\_\-K\_\-EVEN $>$$>$ ((\_\-nibble) \& 0xf)) \& 1)}
\label{PARITY_8h_8257452bf526e3902ef674bd547e773c}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-nibble\/} is {\em even\/}, 1 if the parity is {\em odd\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_eab1c2e6580f248e6b6c44d43d39a730}{
\#define \hyperlink{PARITY_8h_eab1c2e6580f248e6b6c44d43d39a730}{PARITY\_\-8}(\_\-byte)~PARITY\_\-4 ( ((\_\-byte ) $>$$>$  4) $^\wedge$ (\_\-byte ))}
\label{PARITY_8h_eab1c2e6580f248e6b6c44d43d39a730}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-byte\/} is {\em even\/}, 1 if the parity is {\em odd\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_79b34f70dc4bebb5270d3c6d07949931}{
\#define \hyperlink{PARITY_8h_79b34f70dc4bebb5270d3c6d07949931}{PARITY\_\-16}(\_\-hword)~PARITY\_\-8 ( ((\_\-hword) $>$$>$  8) $^\wedge$ (\_\-hword))}
\label{PARITY_8h_79b34f70dc4bebb5270d3c6d07949931}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-hword\/} is {\em even\/}, 1 if the parity is {\em odd\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_be5847d95457609761d0b1c8bb053d6b}{
\#define \hyperlink{PARITY_8h_be5847d95457609761d0b1c8bb053d6b}{PARITY\_\-32}(\_\-word)~PARITY\_\-16( ((\_\-word ) $>$$>$ 16) $^\wedge$ (\_\-word ))}
\label{PARITY_8h_be5847d95457609761d0b1c8bb053d6b}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-word\/} is {\em even\/}, 1 if the parity is {\em odd\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_3d8cccbd7eb1644cac05dc1fe15c9fe6}{
\#define \hyperlink{PARITY_8h_3d8cccbd7eb1644cac05dc1fe15c9fe6}{PARITY\_\-64}(\_\-ll)~PARITY\_\-32( ((\_\-ll   ) $>$$>$ 32) $^\wedge$ (\_\-ll   ))}
\label{PARITY_8h_3d8cccbd7eb1644cac05dc1fe15c9fe6}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-ll\/} is {\em even\/}, 1 if the parity is {\em odd\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_d5ec14bb9850aad85fbbe6e8a269c9e8}{
\#define \hyperlink{PARITY_8h_d5ec14bb9850aad85fbbe6e8a269c9e8}{PARITY\_\-ODD4}(\_\-nibble)~((PARITY\_\-K\_\-ODD $>$$>$ ((\_\-nibble) \& 0xf)) \& 1)}
\label{PARITY_8h_d5ec14bb9850aad85fbbe6e8a269c9e8}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-nibble\/} is {\em odd\/}, 1 if the parity is {\em even\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_bb6693a1c46e7ee29a0074df2ee35654}{
\#define \hyperlink{PARITY_8h_bb6693a1c46e7ee29a0074df2ee35654}{PARITY\_\-ODD8}(\_\-byte)~PARITY\_\-ODD4 ( ((\_\-byte ) $>$$>$  4) $^\wedge$ (\_\-byte ))}
\label{PARITY_8h_bb6693a1c46e7ee29a0074df2ee35654}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-byte\/} is {\em odd\/}, 1 if the parity is {\em even\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_b3e478a952e761bbf9d49ebb393f2344}{
\#define \hyperlink{PARITY_8h_b3e478a952e761bbf9d49ebb393f2344}{PARITY\_\-ODD16}(\_\-hword)~PARITY\_\-ODD8 ( ((\_\-hword) $>$$>$  8) $^\wedge$ (\_\-hword))}
\label{PARITY_8h_b3e478a952e761bbf9d49ebb393f2344}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-hword\/} is {\em odd\/}, 1 if the parity is {\em even\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_04b44efa6cdd8e37aa15f18aef0061f4}{
\#define \hyperlink{PARITY_8h_04b44efa6cdd8e37aa15f18aef0061f4}{PARITY\_\-ODD32}(\_\-word)~PARITY\_\-ODD16( ((\_\-word ) $>$$>$ 16) $^\wedge$ (\_\-word ))}
\label{PARITY_8h_04b44efa6cdd8e37aa15f18aef0061f4}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-word\/} is {\em odd\/}, 1 if the parity is {\em even\/}. \item\end{CompactList}\item 
\hypertarget{PARITY_8h_7f116a393c9f24b6f3b48fed0d054478}{
\#define \hyperlink{PARITY_8h_7f116a393c9f24b6f3b48fed0d054478}{PARITY\_\-ODD64}(\_\-ll)~PARITY\_\-ODD32( ((\_\-ll   ) $>$$>$ 32) $^\wedge$ (\_\-ll   ))}
\label{PARITY_8h_7f116a393c9f24b6f3b48fed0d054478}

\begin{CompactList}\small\item\em Returns 0 if the parity of {\em \_\-ll\/} is {\em odd\/}, 1 if the parity is {\em even\/}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{PARITY_8h_402e60a2052fd38aef13188722777712}{PARITY\_\-calc8} (unsigned char byte)
\begin{CompactList}\small\item\em Calculates the parity over the 8 bits in the specified byte. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_21ebb6f91fd7cd909d253e65f39b0e2d}{PARITY\_\-calc16} (unsigned short int hword)
\begin{CompactList}\small\item\em Calculates the parity over the 16 bits in the specified half word. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_2746a3d02c460834fba340ebcd5c1050}{PARITY\_\-calc32} (unsigned int word)
\begin{CompactList}\small\item\em Calculates the parity over the 32 bits in the specified word. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_b0f07f7b4bb950681eb18185dab83f96}{PARITY\_\-calc64} (unsigned long long int ll)
\begin{CompactList}\small\item\em Calculates the parity over the 64 bits in the specified long long. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_5c559c1422771bec2d2acb2801c1a76a}{PARITY\_\-calc8N} (const unsigned char $\ast$bytes, int nbytes)
\begin{CompactList}\small\item\em Calculates the parity over all the bits in the specified array of bytes. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_7a918bafe3db46f4787fdfd941d34583}{PARITY\_\-calc16N} (const unsigned short int $\ast$hwords, int nhwords)
\begin{CompactList}\small\item\em Calculates the parity over all the bits in the specified array of half words (16-bit integers). \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_e8d9f1bb450a977da61d7ce688a45f2a}{PARITY\_\-calc32N} (const unsigned int $\ast$words, int nwords)
\begin{CompactList}\small\item\em Calculates the parity over all the bits in the specified array of words (32-bit integers). \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_b606b670a9e659c0401f1670945512de}{PARITY\_\-calc64N} (const unsigned long long int $\ast$lls, int nlls)
\begin{CompactList}\small\item\em Calculates the parity over all the bits in the specified array of long longs (64-bit integers). \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_c4a16f133dcde9d7f3e3cb3406da7091}{PARITY\_\-calcOdd8} (unsigned char byte)
\begin{CompactList}\small\item\em Calculates the odd parity over the 8 bits in the specified byte. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_1b9787a89d6a249ac59a8133d90c1472}{PARITY\_\-calcOdd16} (unsigned short int hword)
\begin{CompactList}\small\item\em Calculates the odd parity over the 16 bits in the specified half word. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_e09f157ea2691e25e3cbb1554876f371}{PARITY\_\-calcOdd32} (unsigned int word)
\begin{CompactList}\small\item\em Calculates the odd parity over the 32 bits in the specified word. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_96f8933fa4f298fa148cb34e832dbad0}{PARITY\_\-calcOdd64} (unsigned long long int ll)
\begin{CompactList}\small\item\em Calculates the odd parity over the 64 bits in the specified long long. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_7b3bf2860617bc9dcf949611e4050b1d}{PARITY\_\-calcOdd8N} (const unsigned char $\ast$bytes, int nbytes)
\begin{CompactList}\small\item\em Calculates the odd parity over all the bits in the specified array of bytes. \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_024ce29462c9a294ac448682baa6b077}{PARITY\_\-calcOdd16N} (const unsigned short int $\ast$hwords, int nhwords)
\begin{CompactList}\small\item\em Calculates the odd parity over all the bits in the specified array of half words (16-bit integers). \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_230f1df3bd5d2523393ac206c1f779a5}{PARITY\_\-calcOdd32N} (const unsigned int $\ast$words, int nwords)
\begin{CompactList}\small\item\em Calculates the odd parity over all the bits in the specified array of words (32-bit integers). \item\end{CompactList}\item 
int \hyperlink{PARITY_8h_042b15702ffbe923c0046b3d249617f3}{PARITY\_\-calcOdd64N} (const unsigned long long int $\ast$lls, int nlls)
\begin{CompactList}\small\item\em Calculates the odd parity over all the bits in the specified array of long longs (64-bit integers). \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Priority calculation, callable interface. 

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


\footnotesize\begin{verbatim}
    CVS $Id: PARITY.h,v 1.4 2011/03/24 23:05:42 apw Exp $
\end{verbatim}
\normalsize


\begin{Desc}
\item[]For full documentation and explanation of the algorithms, see the inline versions, documented in PARITY.ih. For the parity calculations\end{Desc}
\begin{itemize}
\item Over immediate values (a single byte, short int, int, long long), one should the macro versions.\item Over variables values (a single byte,short int, int, long long), one should use the inline versions for the type safety they provide.\item Over arrays, one has a choice between the inlines (possibly faster) and the traditional call interface (less code) \end{itemize}


\subsection{Function Documentation}
\hypertarget{PARITY_8h_21ebb6f91fd7cd909d253e65f39b0e2d}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calc16@{PARITY\_\-calc16}}
\index{PARITY\_\-calc16@{PARITY\_\-calc16}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calc16}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calc16 (unsigned short int {\em hword})}}
\label{PARITY_8h_21ebb6f91fd7cd909d253e65f39b0e2d}


Calculates the parity over the 16 bits in the specified half word. 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, over the 16 bits the specified half word.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em hword}]The half word (short int) to calculate the parity of. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_7a918bafe3db46f4787fdfd941d34583}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calc16N@{PARITY\_\-calc16N}}
\index{PARITY\_\-calc16N@{PARITY\_\-calc16N}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calc16N}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calc16N (const unsigned short int $\ast$ {\em hwords}, \/  int {\em nhwords})}}
\label{PARITY_8h_7a918bafe3db46f4787fdfd941d34583}


Calculates the parity over all the bits in the specified array of half words (16-bit integers). 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, over all the bits in the specified array of half words (16-bit integers). If a length of 0 is specified, 0 is returned.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em hwords}]The array of half words (16-bit integers) to calculate the parity over. \item[{\em nhwords}]The number of half words (16-bit integers) in the array. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_2746a3d02c460834fba340ebcd5c1050}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calc32@{PARITY\_\-calc32}}
\index{PARITY\_\-calc32@{PARITY\_\-calc32}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calc32}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calc32 (unsigned int {\em word})}}
\label{PARITY_8h_2746a3d02c460834fba340ebcd5c1050}


Calculates the parity over the 32 bits in the specified word. 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, over the 32 bits the specified word.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em word}]The word to calculate the parity over. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_e8d9f1bb450a977da61d7ce688a45f2a}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calc32N@{PARITY\_\-calc32N}}
\index{PARITY\_\-calc32N@{PARITY\_\-calc32N}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calc32N}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calc32N (const unsigned int $\ast$ {\em words}, \/  int {\em nwords})}}
\label{PARITY_8h_e8d9f1bb450a977da61d7ce688a45f2a}


Calculates the parity over all the bits in the specified array of words (32-bit integers). 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, of the specified array of words. If a length of 0 is specified, 0 is returned.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em words}]The array of words (ints) to calculate the parity over. \item[{\em nwords}]The number of words (ints) in the array. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_b0f07f7b4bb950681eb18185dab83f96}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calc64@{PARITY\_\-calc64}}
\index{PARITY\_\-calc64@{PARITY\_\-calc64}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calc64}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calc64 (unsigned long long int {\em ll})}}
\label{PARITY_8h_b0f07f7b4bb950681eb18185dab83f96}


Calculates the parity over the 64 bits in the specified long long. 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, over the 64 bits the specified long long.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ll}]The long long word to calculate the parity over. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_b606b670a9e659c0401f1670945512de}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calc64N@{PARITY\_\-calc64N}}
\index{PARITY\_\-calc64N@{PARITY\_\-calc64N}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calc64N}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calc64N (const unsigned long long int $\ast$ {\em lls}, \/  int {\em nlls})}}
\label{PARITY_8h_b606b670a9e659c0401f1670945512de}


Calculates the parity over all the bits in the specified array of long longs (64-bit integers). 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, of the specified array of words. If a length of 0 is specified, 0 is returned.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em lls}]The array of long longs to calculate the parity over. \item[{\em nlls}]The number of long longs in the array. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_402e60a2052fd38aef13188722777712}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calc8@{PARITY\_\-calc8}}
\index{PARITY\_\-calc8@{PARITY\_\-calc8}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calc8}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calc8 (unsigned char {\em byte})}}
\label{PARITY_8h_402e60a2052fd38aef13188722777712}


Calculates the parity over the 8 bits in the specified byte. 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, over the 8 bits in the specified byte.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em byte}]The byte to calculate the parity over. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_5c559c1422771bec2d2acb2801c1a76a}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calc8N@{PARITY\_\-calc8N}}
\index{PARITY\_\-calc8N@{PARITY\_\-calc8N}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calc8N}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calc8N (const unsigned char $\ast$ {\em bytes}, \/  int {\em nbytes})}}
\label{PARITY_8h_5c559c1422771bec2d2acb2801c1a76a}


Calculates the parity over all the bits in the specified array of bytes. 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, over the specified array of bytes. If a length of 0 is specified, 0 is returned.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em bytes}]The array of bytes to calculate the parity over. \item[{\em nbytes}]The number of bytes in array. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_1b9787a89d6a249ac59a8133d90c1472}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calcOdd16@{PARITY\_\-calcOdd16}}
\index{PARITY\_\-calcOdd16@{PARITY\_\-calcOdd16}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calcOdd16}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calcOdd16 (unsigned short int {\em hword})}}
\label{PARITY_8h_1b9787a89d6a249ac59a8133d90c1472}


Calculates the odd parity over the 16 bits in the specified half word. 

\begin{Desc}
\item[Returns:]The odd parity, either 0 or 1, over the 16 bits the specified half word.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em hword}]The half word (short int) to calculate the odd parity of. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_024ce29462c9a294ac448682baa6b077}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calcOdd16N@{PARITY\_\-calcOdd16N}}
\index{PARITY\_\-calcOdd16N@{PARITY\_\-calcOdd16N}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calcOdd16N}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calcOdd16N (const unsigned short int $\ast$ {\em hwords}, \/  int {\em nhwords})}}
\label{PARITY_8h_024ce29462c9a294ac448682baa6b077}


Calculates the odd parity over all the bits in the specified array of half words (16-bit integers). 

\begin{Desc}
\item[Returns:]The odd parity, either 0 or 1, over all the bits in the specified array of half words (16-bit integers). If a length of 0 is specified, 1 is returned.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em hwords}]The array of half words (16-bit integers) to calculate the odd parity over. \item[{\em nhwords}]The number of half words (16-bit integers) in the array. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_e09f157ea2691e25e3cbb1554876f371}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calcOdd32@{PARITY\_\-calcOdd32}}
\index{PARITY\_\-calcOdd32@{PARITY\_\-calcOdd32}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calcOdd32}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calcOdd32 (unsigned int {\em word})}}
\label{PARITY_8h_e09f157ea2691e25e3cbb1554876f371}


Calculates the odd parity over the 32 bits in the specified word. 

\begin{Desc}
\item[Returns:]The odd parity, either 0 or 1, over the 32 bits the specified word.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em word}]The word to calculate the odd parity over. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_230f1df3bd5d2523393ac206c1f779a5}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calcOdd32N@{PARITY\_\-calcOdd32N}}
\index{PARITY\_\-calcOdd32N@{PARITY\_\-calcOdd32N}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calcOdd32N}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calcOdd32N (const unsigned int $\ast$ {\em words}, \/  int {\em nwords})}}
\label{PARITY_8h_230f1df3bd5d2523393ac206c1f779a5}


Calculates the odd parity over all the bits in the specified array of words (32-bit integers). 

\begin{Desc}
\item[Returns:]The odd parity, either 0 or 1, of the specified array of words. If a length of 0 is specified, 1 is returned.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em words}]The array of words (ints) to calculate the odd parity over. \item[{\em nwords}]The number of words (ints) in the array. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_96f8933fa4f298fa148cb34e832dbad0}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calcOdd64@{PARITY\_\-calcOdd64}}
\index{PARITY\_\-calcOdd64@{PARITY\_\-calcOdd64}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calcOdd64}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calcOdd64 (unsigned long long int {\em ll})}}
\label{PARITY_8h_96f8933fa4f298fa148cb34e832dbad0}


Calculates the odd parity over the 64 bits in the specified long long. 

\begin{Desc}
\item[Returns:]The odd parity, either 0 or 1, over the 64 bits the specified long long.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ll}]The long long word to calculate the parity odd over. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_042b15702ffbe923c0046b3d249617f3}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calcOdd64N@{PARITY\_\-calcOdd64N}}
\index{PARITY\_\-calcOdd64N@{PARITY\_\-calcOdd64N}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calcOdd64N}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calcOdd64N (const unsigned long long int $\ast$ {\em lls}, \/  int {\em nlls})}}
\label{PARITY_8h_042b15702ffbe923c0046b3d249617f3}


Calculates the odd parity over all the bits in the specified array of long longs (64-bit integers). 

\begin{Desc}
\item[Returns:]The parity, either 0 or 1, of the specified array of words. If a length of 0 is specified, 1 is returned.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em lls}]The array of long longs to calculate the parity over. \item[{\em nlls}]The number of long longs in the array. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_c4a16f133dcde9d7f3e3cb3406da7091}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calcOdd8@{PARITY\_\-calcOdd8}}
\index{PARITY\_\-calcOdd8@{PARITY\_\-calcOdd8}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calcOdd8}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calcOdd8 (unsigned char {\em byte})}}
\label{PARITY_8h_c4a16f133dcde9d7f3e3cb3406da7091}


Calculates the odd parity over the 8 bits in the specified byte. 

\begin{Desc}
\item[Returns:]The odd parity, either 0 or 1, over the 8 bits in the specified byte.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em byte}]The byte to calculate the odd parity over. \end{description}
\end{Desc}
\hypertarget{PARITY_8h_7b3bf2860617bc9dcf949611e4050b1d}{
\index{PARITY.h@{PARITY.h}!PARITY\_\-calcOdd8N@{PARITY\_\-calcOdd8N}}
\index{PARITY\_\-calcOdd8N@{PARITY\_\-calcOdd8N}!PARITY.h@{PARITY.h}}
\subsubsection[{PARITY\_\-calcOdd8N}]{\setlength{\rightskip}{0pt plus 5cm}int PARITY\_\-calcOdd8N (const unsigned char $\ast$ {\em bytes}, \/  int {\em nbytes})}}
\label{PARITY_8h_7b3bf2860617bc9dcf949611e4050b1d}


Calculates the odd parity over all the bits in the specified array of bytes. 

\begin{Desc}
\item[Returns:]The odd parity, either 0 or 1, over the specified array of bytes. If a length of 0 is specified, 1 is returned.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em bytes}]The array of bytes to calculate the odd parity over. \item[{\em nbytes}]The number of bytes in array. \end{description}
\end{Desc}
