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
svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
unsorted
/
bx.c
blob
274fb015cf58eb2ed3e495cea0039e899c38b03b
1
unsigned
2
good
(
unsigned
src
,
unsigned
o5
,
unsigned
w5
)
3
{
4
return
src
& ~((
w5
==
0
) ? (~
0
<<
o5
) : (
1
<<
o5
));
5
}
6
7
unsigned
8
bad
(
unsigned
src
,
unsigned
o5
,
unsigned
w5
)
9
{
10
return
src
& ((
w5
==
0
) ? ~(~
0
<<
o5
) : ~(
1
<<
o5
));
11
}
12