diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-19 22:52:21 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:37 +0000 |
commit | 112075f8c217ba01c23d5f9562205ea08864a3f1 (patch) | |
tree | aa08f4d95718243baf1bb3123efb36f5ac79a788 /assembler/brw_compat.h | |
parent | a66cd60f2d5a748e0893fc0f31fbc9bdeb0bb758 (diff) |
assembler: Import brw_eu_compact.c
To be able to import brw_eu.c and brw_eu_emit.c later on. This could be
used to get the assembler generate compact instructions at some point.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/brw_compat.h')
-rw-r--r-- | assembler/brw_compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/assembler/brw_compat.h b/assembler/brw_compat.h index 93001905..5102a02c 100644 --- a/assembler/brw_compat.h +++ b/assembler/brw_compat.h @@ -57,6 +57,8 @@ extern "C" { #define PRINTFLIKE(f, a) #endif +#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) + #ifdef __cplusplus } /* end of extern "C" */ #endif |