diff options
author | Corbin Simpson <[email protected]> | 2009-07-08 11:26:52 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-07-08 11:26:52 -0700 |
commit | ce0f7954f883c94c793bf1b93699351defae34c5 (patch) | |
tree | 92b1410cd2f7dc1a798b917f633696c095479162 | |
parent | 186d187ff7eebad58a18721878c5b23799e3f3d6 (diff) |
gallium: Add endian detection to p_config.
-rw-r--r-- | src/gallium/include/pipe/p_config.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h index c956a693a09..4152d6ac36a 100644 --- a/src/gallium/include/pipe/p_config.h +++ b/src/gallium/include/pipe/p_config.h @@ -102,6 +102,19 @@ /* + * Endian detection. + */ + +#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) +#define PIPE_ARCH_LITTLE_ENDIAN +#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) +#define PIPE_ARCH_BIG_ENDIAN +#else +#define PIPE_ARCH_UNKNOWN_ENDIAN +#endif + + +/* * Operating system family. * * See subsystem below for a more fine-grained distinction. |