mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 16:50:57 +00:00
22 lines
153 B
C
22 lines
153 B
C
|
|
||
|
|
||
|
short
|
||
|
__mulhi3(short a, short b)
|
||
|
{
|
||
|
int r;
|
||
|
|
||
|
r = 0;
|
||
|
while (a)
|
||
|
{
|
||
|
if (a & 1)
|
||
|
{
|
||
|
r += b;
|
||
|
a>>=1;
|
||
|
b<<=1;
|
||
|
}
|
||
|
}
|
||
|
return r;
|
||
|
}
|
||
|
|
||
|
|