aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgcc/config/msp430/mpy.c
blob: 57cffd0ba2a68b5a75355759bf4c60e0d0f73652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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;
}