4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 10:39:25 +08:00
2000-02-17 19:39:52 +00:00

18 lines
174 B
C

long
__mulsi3(unsigned long a, unsigned long b)
{
long res = 0;
while (a)
{
if (a & 1)
{
res += b;
}
b <<= 1;
a >>=1;
}
return res;
}