assembler: Import brw_eu_compact.c
[platform/upstream/intel-gpu-tools.git] / assembler / brw_compat.h
index 9300190..5102a02 100644 (file)
@@ -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