Retro68/gcc/libgcc/config/msp430/mpy.c

16 lines
179 B
C
Raw Normal View History

2014-09-21 17:33:12 +00:00
/* Public domain. */
extern int __mulhi3 (int, int);
int
__mulhi3 (int x, int y)
{
volatile int rv = 0;
while (y > 0)
{
rv += x;
y --;
}
return rv;
}