\section{aversive\_\-10-03-12/modules/base/math/fixed\_\-point/f16\_\-int.c File Reference}
\label{f16__int_8c}\index{aversive\_\-10-03-12/modules/base/math/fixed\_\-point/f16\_\-int.c@{aversive\_\-10-03-12/modules/base/math/fixed\_\-point/f16\_\-int.c}}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$f16.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
{\bf f16} {\bf f16\_\-from\_\-integer} (int8\_\-t {\bf i}, uint8\_\-t d)
\item 
{\bf f16} {\bf f16\_\-from\_\-msb} (int8\_\-t {\bf i})
\item 
{\bf f16} {\bf f16\_\-from\_\-lsb} (int8\_\-t {\bf i})
\end{CompactItemize}


\subsection{Function Documentation}
\index{f16\_\-int.c@{f16\_\-int.c}!f16\_\-from\_\-integer@{f16\_\-from\_\-integer}}
\index{f16\_\-from\_\-integer@{f16\_\-from\_\-integer}!f16_int.c@{f16\_\-int.c}}
\subsubsection[f16\_\-from\_\-integer]{\setlength{\rightskip}{0pt plus 5cm}{\bf f16} f16\_\-from\_\-integer (int8\_\-t {\em i}, \/  uint8\_\-t {\em d})}\label{f16__int_8c_8f35f9e6df6f038beff84a0225489a26}


convert 2 integer (int8\_\-t and uint8\_\-t) to a f16 

Definition at line 28 of file f16\_\-int.c.

References parse\_\-symbols::f.\index{f16\_\-int.c@{f16\_\-int.c}!f16\_\-from\_\-lsb@{f16\_\-from\_\-lsb}}
\index{f16\_\-from\_\-lsb@{f16\_\-from\_\-lsb}!f16_int.c@{f16\_\-int.c}}
\subsubsection[f16\_\-from\_\-lsb]{\setlength{\rightskip}{0pt plus 5cm}{\bf f16} f16\_\-from\_\-lsb (int8\_\-t {\em i})}\label{f16__int_8c_018da81437537977fbced6e7aeea8e0b}


convert lsb integer (int8\_\-t) to a f16 ( -0.5 $<$ ret $<$ 0.5 ) 

Definition at line 51 of file f16\_\-int.c.

References parse\_\-symbols::f.\index{f16\_\-int.c@{f16\_\-int.c}!f16\_\-from\_\-msb@{f16\_\-from\_\-msb}}
\index{f16\_\-from\_\-msb@{f16\_\-from\_\-msb}!f16_int.c@{f16\_\-int.c}}
\subsubsection[f16\_\-from\_\-msb]{\setlength{\rightskip}{0pt plus 5cm}{\bf f16} f16\_\-from\_\-msb (int8\_\-t {\em i})}\label{f16__int_8c_9dc6a271339061bbcdbe209bddc98e6d}


convert msb integer (int8\_\-t) to a f16 

Definition at line 39 of file f16\_\-int.c.

References parse\_\-symbols::f.