diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-07-05 14:50:12 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-07-05 14:50:12 +0000 |
commit | cbc96b705d1dc1c6aedba29ad6ce16d526e3b50e (patch) | |
tree | 55ca0a219671448f826ded36543b206188276e2f /src/mesa/math | |
parent | cacf47373251e4d17eae6d2f77c78096ed6f5c53 (diff) |
patch for AIX (bug 983144)
Diffstat (limited to 'src/mesa/math')
-rw-r--r-- | src/mesa/math/m_debug_util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/math/m_debug_util.h b/src/mesa/math/m_debug_util.h index 9df84301f1..e169034453 100644 --- a/src/mesa/math/m_debug_util.h +++ b/src/mesa/math/m_debug_util.h @@ -265,11 +265,13 @@ enum { NIL = 0, ONE = 1, NEG = -1, VAR = 2 }; /* Ensure our arrays are correctly aligned. */ #if defined(__GNUC__) -# define ALIGN16 __attribute__ ((aligned (16))) +# define ALIGN16 type array __attribute__ ((aligned (16))) #elif defined(__MSC__) -# define ALIGN16 __declspec(align(16)) /* GH: Does this work? */ +# define ALIGN16 type array __declspec(align(16)) /* GH: Does this work? */ #elif defined(__WATCOMC__) # define ALIGN16 /* Watcom does not support this */ +#elif defined(__xlC__) +# define ALIGN16(type, array) type __align (16) array #else # warning "ALIGN16 will not 16-byte align!\n" # define ALIGN16 |