On Thursday 21 September 2006 17:57, Brian Paul wrote:
Interestingly, these two variations produce different code (gcc -O2):
static INLINE GLboolean
_mesa_little_endian(void)
{
static const GLuint ui = 1;// NOTE: static
return *((const GLubyte *) ui);
}
static INLINE
Hi,
Roland pointed me to this yesterday (src/mesa/main/glheader.h):
/*
* Either define MESA_BIG_ENDIAN or MESA_LITTLE_ENDIAN.
* Do not use them unless absolutely necessary!
* Try to use a runtime test instead.
* For now, only used by some DRI hardware drivers for color/texel packing.
*/
So
Jerome Glisse wrote:
On 9/21/06, Brian Paul [EMAIL PROTECTED] wrote:
Jerome Glisse wrote:
Hi,
Roland pointed me to this yesterday (src/mesa/main/glheader.h):
/*
* Either define MESA_BIG_ENDIAN or MESA_LITTLE_ENDIAN.
* Do not use them unless absolutely necessary!
* Try to use