\doxysection{include/osmocom/core/endian.h File Reference}
\label{endian_8h}\index{include/osmocom/core/endian.h@{include/osmocom/core/endian.h}}


GNU and Free\+BSD have various ways to express the endianness but none of them is similar enough.  


\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \textbf{ OSMO\+\_\+\+IS\+\_\+\+LITTLE\+\_\+\+ENDIAN}~1
\item 
\#define \textbf{ OSMO\+\_\+\+IS\+\_\+\+BIG\+\_\+\+ENDIAN}~0
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
GNU and Free\+BSD have various ways to express the endianness but none of them is similar enough. 

This will create two defines that allows to decide on the endian. The following will be defined to either 0 or 1 at the end of the file. \begin{DoxyVerb} OSMO_IS_LITTLE_ENDIAN
 OSMO_IS_BIG_ENDIAN
\end{DoxyVerb}
 

\doxysubsection{Macro Definition Documentation}
\mbox{\label{endian_8h_ab67baeda1c52529fc18b1abee583d2ca}} 
\index{endian.h@{endian.h}!OSMO\_IS\_BIG\_ENDIAN@{OSMO\_IS\_BIG\_ENDIAN}}
\index{OSMO\_IS\_BIG\_ENDIAN@{OSMO\_IS\_BIG\_ENDIAN}!endian.h@{endian.h}}
\doxysubsubsection{OSMO\_IS\_BIG\_ENDIAN}
{\footnotesize\ttfamily \#define OSMO\+\_\+\+IS\+\_\+\+BIG\+\_\+\+ENDIAN~0}

\mbox{\label{endian_8h_a15408f7c4554c93be027949399cfcaf5}} 
\index{endian.h@{endian.h}!OSMO\_IS\_LITTLE\_ENDIAN@{OSMO\_IS\_LITTLE\_ENDIAN}}
\index{OSMO\_IS\_LITTLE\_ENDIAN@{OSMO\_IS\_LITTLE\_ENDIAN}!endian.h@{endian.h}}
\doxysubsubsection{OSMO\_IS\_LITTLE\_ENDIAN}
{\footnotesize\ttfamily \#define OSMO\+\_\+\+IS\+\_\+\+LITTLE\+\_\+\+ENDIAN~1}

