mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 00:00:25 +01:00
added _mesa_little_endian()
This commit is contained in:
parent
81e0d73780
commit
32e0efbdbe
1 changed files with 12 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.5.1
|
||||
* Version: 6.5.2
|
||||
*
|
||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||
*
|
||||
|
|
@ -604,6 +604,17 @@ do { \
|
|||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Return 1 if this is a little endian machine, 0 if big endian.
|
||||
*/
|
||||
static INLINE GLboolean
|
||||
_mesa_little_endian(void)
|
||||
{
|
||||
const GLuint ui = 1; /* intentionally not static */
|
||||
return *((const GLubyte *) &ui);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Functions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue