projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f75420
)
nasm.h: introduce is_class macro helper
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Tue, 13 Oct 2009 15:02:47 +0000
(19:02 +0400)
committer
Cyrill Gorcunov
<gorcunov@gmail.com>
Tue, 13 Oct 2009 15:41:45 +0000
(19:41 +0400)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
nasm.h
patch
|
blob
|
history
diff --git
a/nasm.h
b/nasm.h
index
00cbddc
..
2982101
100644
(file)
--- a/
nasm.h
+++ b/
nasm.h
@@
-539,6
+539,8
@@
typedef uint32_t opflags_t;
#define MEMORY 0x0000c000U
#define REGMEM 0x00008000U /* for r/m, ie EA, operands */
+#define is_class(class, op) (!((opflags_t)(class) & ~(opflags_t)(op)))
+
/* Register classes */
#define REG_EA 0x00009000U /* 'normal' reg, qualifies as EA */
#define RM_GPR 0x00208000U /* integer operand */