repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
20030220-1.c
blob
59a03e42c45645ba100de48fae1375b624c70097
1
/* PR optimization/9768 */
2
/* Originator: Randolph Chung <tausq@debian.org> */
3
4
inline
int
fixfloor
(
long
x
)
5
{
6
if
(
x
>=
0
)
7
return
(
x
>>
16
);
8
else
9
return
~((~
x
) >>
16
);
10
}
11
12
inline
int
fixtoi
(
long
x
)
13
{
14
return
fixfloor
(
x
) + ((
x
&
0x8000
) >>
15
);
15
}
16
17
int
foo
(
long
x
,
long
y
)
18
{
19
return
fixtoi
(
x
*
y
);
20
}