summaryrefslogtreecommitdiff
path: root/assembler/gen4asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'assembler/gen4asm.h')
-rw-r--r--assembler/gen4asm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h
index 58cf11a2..8db7bce2 100644
--- a/assembler/gen4asm.h
+++ b/assembler/gen4asm.h
@@ -69,6 +69,8 @@ typedef struct { \
/* ensure nobody changes the size of struct brw_instruction */
STRUCT_SIZE_ASSERT(brw_instruction, 16);
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+
struct condition {
int cond;
int flag_reg_nr;