i965/fs: Make half() divide the register width by 2 and use it more
[mesa.git] / src / util / macros.h
index a9867b413543605e756091bcb1adade00c51aff0..40ebf02da84cc86c22cbd930d29c8f07185604e4 100644 (file)
@@ -87,6 +87,12 @@ do {                        \
 #define PRINTFLIKE(f, a)
 #endif
 
+#ifdef HAVE_FUNC_ATTRIBUTE_MALLOC
+#define MALLOCLIKE __attribute__((__malloc__))
+#else
+#define MALLOCLIKE
+#endif
+
 /* Used to optionally mark structures with misaligned elements or size as
  * packed, to trade off performance for space.
  */