mesa: Move ROUND_DOWN_TO() macro from i915/i965 to macros.h.
[mesa.git] / src / mesa / main / compiler.h
index fb7baf84ea44b497481085e35f400e64c0013db9..0f27d5a66438ef683cf8c5b8db022914f991478b 100644 (file)
@@ -270,6 +270,15 @@ static INLINE GLuint CPU_TO_LE32(GLuint x)
 #define NULL 0
 #endif
 
+/* Used to optionally mark structures with misaligned elements or size as
+ * packed, to trade off performance for space.
+ */
+#if (__GNUC__ >= 3)
+#define PACKED __attribute__((__packed__))
+#else
+#define PACKED
+#endif
+
 
 /**
  * LONGSTRING macro