repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
machine
/
h8500
/
mulhi3.c
blob
869e131ea77004252cc5957b2d289448f24179c4
1
2
3
short
4
__mulhi3
(
short
a
,
short
b
)
5
{
6
int
r
;
7
8
r
=
0
;
9
while
(
a
)
10
{
11
if
(
a
&
1
)
12
{
13
r
+=
b
;
14
a
>>=
1
;
15
b
<<=
1
;
16
}
17
}
18
return
r
;
19
}
20
21