source: trunk/libs/newlib/src/newlib/libc/machine/w65/mulsi3.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 174 bytes
Line 
1
2
3long
4__mulsi3(unsigned long a, unsigned long b)
5{
6  long res = 0;
7  while (a) 
8    {
9      if (a & 1)
10        {
11          res += b;
12        }
13      b <<= 1;
14      a >>=1;
15    }
16  return res;
17}
Note: See TracBrowser for help on using the repository browser.