\section{lib/mint/mulhi3.c File Reference}
\label{mulhi3_8c}\index{lib/mint/mulhi3.c@{lib/mint/mulhi3.c}}
16 bit multiplication routine 

\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf \_\-\_\-mulhi3} (int a, int b)
\begin{CompactList}\small\item\em 16 bit signed multiplication $\ast$/ \item\end{CompactList}\item 
{\bf \_\-\_\-asm\_\-\_\-} (\char`\"{}$\backslash$n$\backslash$
.section .text$\backslash$n$\backslash$
.global \_\-\_\-\_\-mulhi3$\backslash$n$\backslash$
\_\-\_\-\_\-mulhi3:$\backslash$n$\backslash$
      ; param   r0,r1$\backslash$n$\backslash$
      ; return  r0$\backslash$n$\backslash$
      ; clobber r2$\backslash$n$\backslash$
    $\backslash$n$\backslash$
      mov.w    r0,r2$\backslash$n$\backslash$
      mulxu.b  r1h,r2$\backslash$n$\backslash$
      mov.b    r0h,r2h$\backslash$n$\backslash$
      mulxu.b  r1l,r0$\backslash$n$\backslash$
      add.b    r2l,r0h$\backslash$n$\backslash$
      mulxu.b  r2h,r1$\backslash$n$\backslash$
      add.b    r1l,r0h$\backslash$n$\backslash$
      rts$\backslash$n$\backslash$
\char`\"{})
\end{CompactItemize}


\subsection{Detailed Description}
16 bit multiplication routine 

\begin{Desc}
\item[Author:]Markus L. Noga $<${\tt markus@noga.de}$>$\end{Desc}


Definition in file {\bf mulhi3.c}.

\subsection{Function Documentation}
\index{mulhi3.c@{mulhi3.c}!__asm__@{\_\-\_\-asm\_\-\_\-}}
\index{__asm__@{\_\-\_\-asm\_\-\_\-}!mulhi3.c@{mulhi3.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\_\-\_\-asm\_\-\_\- (\char`\"{}$\backslash$n$\backslash$.section .text$\backslash$n$\backslash$.global \_\-\_\-\_\-mulhi3$\backslash$n$\backslash$\_\-\_\-\_\-mulhi3:$\backslash$n$\backslash$ ; param  {\em r0}, r1$\backslash$n$\backslash$;return r0$\backslash$n$\backslash$;clobber r2$\backslash$n$\backslash$$\backslash$n$\backslash$mov.w {\em r0}, r2$\backslash$n$\backslash$mulxu.b {\em r1h}, r2$\backslash$n$\backslash$mov.b {\em r0h}, r2h$\backslash$n$\backslash$mulxu.b {\em r1l}, r0$\backslash$n$\backslash$add.b {\em r2l}, r0h$\backslash$n$\backslash$mulxu.b {\em r2h}, r1$\backslash$n$\backslash$add.b {\em r1l}, r0h$\backslash$n$\backslash$rts$\backslash$n$\backslash$\char`\"{})}\label{mulhi3_8c_a1}


\index{mulhi3.c@{mulhi3.c}!__mulhi3@{\_\-\_\-mulhi3}}
\index{__mulhi3@{\_\-\_\-mulhi3}!mulhi3.c@{mulhi3.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int \_\-\_\-mulhi3 (int {\em a}, int {\em b})}\label{mulhi3_8c_a0}


16 bit signed multiplication $\ast$/ 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em a}]multiplicand \item[{\em b}]multiplicand \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]product \end{Desc}
