repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
validation: inline switch statement
[smatch.git]
/
validation
/
foul-bitwise.c
blob
ca84be60a869555308cb98a0fab9f9bbbe3f1d15
1
typedef
unsigned short
__attribute__
((
bitwise
))
__le16
;
2
static
__le16
foo
(
__le16 a
)
3
{
4
return
a
|= ~
a
;
5
}
6
7
static int
baz
(
__le16 a
)
8
{
9
return
~
a
== ~
a
;
10
}
11
12
static int
barf
(
__le16 a
)
13
{
14
return
a
== (
a
& ~
a
);
15
}
16
17
static
__le16
bar
(
__le16 a
)
18
{
19
return
-
a
;
20
}