projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df2859f
)
isl_ctx.h: make FL_ISSET return a boolean value
author
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 26 Feb 2009 11:14:21 +0000
(12:14 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 8 Mar 2009 18:27:06 +0000
(19:27 +0100)
include/isl_ctx.h.in
patch
|
blob
|
history
diff --git
a/include/isl_ctx.h.in
b/include/isl_ctx.h.in
index
7f717ca
..
cef5472
100644
(file)
--- a/
include/isl_ctx.h.in
+++ b/
include/isl_ctx.h.in
@@
-57,7
+57,7
@@
struct isl_ctx {
#define ISL_FL_INIT(l, f) (l) = (f) /* Specific flags location. */
#define ISL_FL_SET(l, f) ((l) |= (f))
#define ISL_FL_CLR(l, f) ((l) &= ~(f))
-#define ISL_FL_ISSET(l, f) (
(l) & (f
))
+#define ISL_FL_ISSET(l, f) (
!!((l) & (f)
))
#define ISL_F_INIT(p, f) ISL_FL_INIT((p)->flags, f) /* Structure element flags. */
#define ISL_F_SET(p, f) ISL_FL_SET((p)->flags, f)