Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

mulhi3.c File Reference

16 bit multiplication routine More...

Go to the source code of this file.

Functions

int __mulhi3 (int a, int b)
 16 bit signed multiplication */
 __asm__ ("\n\ .section .text\n\ .global ___mulhi3\n\ ___mulhi3:\n\ ; param r0,r1\n\ ; return r0\n\ ; clobber r2\n\ \n\ mov.w r0,r2\n\ mulxu.b r1h,r2\n\ mov.b r0h,r2h\n\ mulxu.b r1l,r0\n\ add.b r2l,r0h\n\ mulxu.b r2h,r1\n\ add.b r1l,r0h\n\ rts\n\ ")


Detailed Description

16 bit multiplication routine

Author:
Markus L. Noga <markus@noga.de>

Definition in file mulhi3.c.


Function Documentation

__asm__ "\n\.section .text\n\.global ___mulhi3\n\___mulhi3:\n\ ; param   r0,
r1\n\;return r0\n\;clobber r2\n\\n\mov.w  r0,
r2\n\mulxu.b  r1h,
r2\n\mov.b  r0h,
r2h\n\mulxu.b  r1l,
r0\n\add.b  r2l,
r0h\n\mulxu.b  r2h,
r1\n\add.b  r1l,
r0h\n\rts\n\" 
 

int __mulhi3 int  a,
int  b
 

16 bit signed multiplication */

Parameters:
a multiplicand
b multiplicand
Returns:
product


Generated on Fri Feb 25 08:02:45 2005 for brickos by  doxygen 1.3.9.1