OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-07-25 Janis Johnson <janis187@us.ibm.com>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
unsorted
/
bx.c
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