diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-26 22:44:45 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:39 +0000 |
commit | e9172aa22538216cd434c700d78915ec06142238 (patch) | |
tree | b114d6705a702fb0dc8ccfe9e6cb255ff3e453af /assembler/gen4asm.h | |
parent | d94e8a6cf0952e0a905699a47a50e57181fb414f (diff) |
assembler: Add error() and warn() shorthands and use them in set_src[01]
Now that we have locations, we can write error() and warn() functions
giving more information about where it's going wrong.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/gen4asm.h')
-rw-r--r-- | assembler/gen4asm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index 58cf11a2e..8db7bce2c 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; |