mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
gallium: Add endian detection to p_config.
This commit is contained in:
parent
186d187ff7
commit
ce0f7954f8
1 changed files with 13 additions and 0 deletions
|
|
@ -101,6 +101,19 @@
|
|||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue