Retro68/gcc/libgcc/config/msp430/mpy.c
2014-09-21 19:33:12 +02:00

16 lines
179 B
C

/* 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;
}