\XtoCBlock{Atan2}
\label{block:Atan2}
\begin{figure}[H]\includegraphics{Atan2}\end{figure} 
Computation of the angle between the inputs x and y.

\begin{XtoCtabular}{Inports}
y & \\
\hline
x & \\
\hline
\end{XtoCtabular}


\begin{XtoCtabular}{Outports}
Out & Result of atan2(y/x)\\
\hline
\end{XtoCtabular}

\ifdefined \XcOverviewDocu
% omit optional documentation file
\else
% include optional documentation file
\IfFileExists{\XcHomePath/Library/Math/Doc/Atan2_Info.tex}
  {\subsubsection*{Description:}
   \input{\XcHomePath/Library/Math/Doc/Atan2_Info.tex}}
  {\vspace{1ex}}
\fi

\subsubsection*{Implementations:}
\begin{tabular}{l l}
\textbf{FiP8} & 8 Bit Fixed Point Implementation\\
\textbf{FiP16} & 16 Bit Fixed Point Implementation\\
\textbf{FiP32} & 32 Bit Fixed Point Implementation\\
\textbf{Float32} & 32 Bit Floating Point Implementation\\
\textbf{Float64} & 64 Bit Floating Point Implementation\\
\end{tabular}

\ifdefined \XcOverviewDocu
% omit implementation details and test reports
\else
\XtoCImplementation{FiP8}
\nopagebreak[0]

8 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
y & int8\\
\hline
x & int8\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int8\\
\hline
\end{XtoCtabular}

\XtoCImplementation{FiP16}
\nopagebreak[0]

16 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
y & int16\\
\hline
x & int16\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int16\\
\hline
\end{XtoCtabular}

\XtoCImplementation{FiP32}
\nopagebreak[0]

32 Bit Fixed Point Implementation

\begin{XtoCtabular}{Inports Data Type}
y & int32\\
\hline
x & int32\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & int32\\
\hline
\end{XtoCtabular}

\XtoCImplementation{Float32}
\nopagebreak[0]

32 Bit Floating Point Implementation

\begin{XtoCtabular}{Inports Data Type}
y & float32\\
\hline
x & float32\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & float32\\
\hline
\end{XtoCtabular}

\XtoCImplementation{Float64}
\nopagebreak[0]

64 Bit Floating Point Implementation

\begin{XtoCtabular}{Inports Data Type}
y & float64\\
\hline
x & float64\\
\hline
\end{XtoCtabular}

\begin{XtoCtabular}{Outports Data Type}
Out & float64\\
\hline
\end{XtoCtabular}

\ifdefined \AddTestReports
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Atan2_FiP8.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Atan2_FiP16.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Atan2_FiP32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Atan2_Float32.tex}{}{}
\InputIfFileExists{\XcHomePath/Library/Math/Doc/Test-Results/Test_Atan2_Float64.tex}{}{}
\fi
\fi
