Re: [Mesa3d-dev] MESA_BIG_ENDIAN MESA_LITTLE_ENDIAN

2006-09-22 Thread Nicolai Haehnle
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

[Mesa3d-dev] MESA_BIG_ENDIAN MESA_LITTLE_ENDIAN

2006-09-21 Thread Jerome Glisse
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

Re: [Mesa3d-dev] MESA_BIG_ENDIAN MESA_LITTLE_ENDIAN

2006-09-21 Thread Brian Paul
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