summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/p_compiler.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-20 18:45:14 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-20 18:45:14 -0600
commit3772441c498b997947f68e98830f72649bbc8442 (patch)
tree35d306d7532bd4c038a3bfb44c614f0c122167ad /src/mesa/pipe/p_compiler.h
parent79b8f97457a9634df28ba0def4623dbe2b142f09 (diff)
move ALIGN16-related macros into p_compiler.h
Diffstat (limited to 'src/mesa/pipe/p_compiler.h')
-rw-r--r--src/mesa/pipe/p_compiler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_compiler.h b/src/mesa/pipe/p_compiler.h
index d139cb1844..a4d05f74cd 100644
--- a/src/mesa/pipe/p_compiler.h
+++ b/src/mesa/pipe/p_compiler.h
@@ -68,4 +68,14 @@ typedef unsigned long long uint64;
#endif
+#if defined __GNUC__
+#define ALIGN16_DECL(TYPE, NAME, SIZE) TYPE NAME[SIZE] __attribute__(( aligned( 16 ) ))
+#define ALIGN16_ASSIGN(P) P
+#else
+#define ALIGN16_DECL(TYPE, NAME, SIZE) TYPE NAME[SIZE + 1]
+#define ALIGN16_ASSIGN(P) align16(P)
+#endif
+
+
+
#endif /* P_COMPILER_H */