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
/
w65
/
cmpsi.c
blob
3773c9d2e90a3212d4f3842ce94cd232d9e4341c
1
2
union
u
{
3
struct
{
4
short int
msw
;
5
unsigned short
lsw
;
6
}
w
;
7
long
l
;
8
};
9
10
int
11
__cmpsi2
(
long
arga
,
12
short int
msw_b
,
unsigned short int
lsw_b
)
13
{
14
union
u u
;
15
u
.
l
=
arga
;
16
17
if
(
u
.
w
.
msw
!=
msw_b
)
18
{
19
if
(
u
.
w
.
msw
<
msw_b
)
return
0
;
20
return
2
;
21
}
22
if
(
u
.
w
.
lsw
!=
lsw_b
)
23
{
24
if
(
u
.
w
.
lsw
<
lsw_b
)
return
0
;
25
return
2
;
26
}
27
return
1
;
28
}