mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
18 lines
174 B
C
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;
|
||
|
}
|