Module: Mesa Branch: master Commit: ce0f7954f883c94c793bf1b93699351defae34c5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ce0f7954f883c94c793bf1b93699351defae34c5
Author: Corbin Simpson <[email protected]> Date: Wed Jul 8 11:26:52 2009 -0700 gallium: Add endian detection to p_config. --- 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 c956a69..4152d6a 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. _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
